acf/create_field

The Advanced Custom Fields: Date and Time Picker acf create field hook.

Description

do_action( 'acf/create_field', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'type' => 'radio', 'name' => 'fields[' . $key . '][show_date]', 'value' => $field['show_date'], 'layout' => 'horizontal', 'choices' => array( 'true' => __( 'Date and Time Picker', 'acf-field-date-time-picker' ), 'false' => __( 'Time Picker', 'acf-field-date-time-picker' ), ), )
The array.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'acf/create_field', $array ); 
The following example is for adding a hook callback.
  1. // define the acf/create_field callback 
  2. function action_acf_create_field( $array ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'acf/create_field', 'action_acf_create_field', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'acf/create_field', 'action_acf_create_field', 10, 1 ); 

Defined (7)

The action is defined in the following location(s).

/date-time-picker-v4.php  
  1. do_action('acf/create_field', array( // @codingStandardsIgnoreLine 
  1. do_action('acf/create_field', array( // @codingStandardsIgnoreLine 
  1. do_action('acf/create_field', array( // @codingStandardsIgnoreLine 
  1. do_action('acf/create_field', array( // @codingStandardsIgnoreLine 
  1. do_action('acf/create_field', array( // @codingStandardsIgnoreLine 
  1. do_action('acf/create_field', array( // @codingStandardsIgnoreLine 
  1. do_action('acf/create_field', array( // @codingStandardsIgnoreLine