Automator_Helpers_Recipe_Field::int( $args = array() )


Parameters Parameters

$args

(Optional)

Default value: array()


Top ↑

Return Return

(mixed|void)


Source Source

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

	public function int( array $args = array() ) {

		$defaults = array(
			'option_code' => 'INT',
			'label'       => esc_attr__( 'Number', 'uncanny-automator' ),
			'description' => '',
			'placeholder' => esc_attr__( 'Example: 1', 'uncanny-automator' ),
			'required'    => true,
			'input_type'  => 'int',
			'default'     => '',
		);
		$args     = wp_parse_args( $args, $defaults );

		return apply_filters( 'automator_option_int_field', $this->create_field( $args ) );
	}