Automator_Helpers_Recipe::build_default_options_array( string $label = 'Sample label', string $option_code = 'SAMPLE' )


Parameters Parameters

$label

(string) (Optional)

Default value: 'Sample label'

$option_code

(string) (Optional)

Default value: 'SAMPLE'


Top ↑

Return Return

(array)


Source Source

File: src/core/lib/helpers/class-automator-recipe-helpers.php

	public function build_default_options_array( $label = 'Sample label', $option_code = 'SAMPLE' ) {
		return apply_filters(
			'automator_default_options_array',
			array(
				'option_code' => $option_code,
				'label'       => $label,
				'input_type'  => '',
				'required'    => true,
				'options'     => array(),
			)
		);
	}