Automator_Helpers_Recipe::number_of_times( string $label = null, string $description = null, string $placeholder = null )
Contents
Parameters Parameters
- $label
-
(string) (Optional)
Default value: null
- $description
-
(string) (Optional)
Default value: null
- $placeholder
-
(string) (Optional)
Default value: null
Return Return
(mixed)
Source Source
File: src/core/lib/helpers/class-automator-recipe-helpers.php
public function number_of_times( $label = null, $description = null, $placeholder = null ) { if ( ! $label ) { $label = esc_attr__( 'Number of times', 'uncanny-automator' ); } if ( ! $description ) { $description = ''; } if ( ! $placeholder ) { $placeholder = esc_attr__( 'Example: 1', 'uncanny-automator' ); } $option = array( 'option_code' => 'NUMTIMES', 'label' => $label, 'description' => $description, 'placeholder' => $placeholder, 'input_type' => 'int', 'default_value' => 1, 'required' => true, ); $option = apply_filters_deprecated( 'uap_option_number_of_times', array( $option ), '3.0', 'automator_option_number_of_times' ); return apply_filters( 'automator_option_number_of_times', $option ); }
Expand full source code Collapse full source code View on Github