acf/create_field

The Advanced Custom Fields acf create field hook.

Description

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

Parameters (1)

0. $array — Optional. (callback) => array( 'type' => 'number', 'name' => 'menu_order', 'value' => $post->menu_order, )
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 (103)

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

/core/views/meta_box_options.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/views/meta_box_location.php  
  1. do_action('acf/create_field', $args); 
  1. do_action('acf/create_field', array( 
/core/views/meta_box_fields.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. <li><?php do_action('acf/create_field', array( 
/core/fields/wysiwyg.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/user.php  
  1. do_action('acf/create_field', $field); 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/true_false.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/textarea.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/text.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/taxonomy.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/select.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/relationship.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/radio.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/post_object.php  
  1. do_action('acf/create_field', $field ); 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/password.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/page_link.php  
  1. do_action('acf/create_field', $field ); 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/number.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/message.php  
  1. do_action('acf/create_field', array( 
/core/fields/image.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/google-map.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/file.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/email.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/date_picker/date_picker.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/fields/color_picker.php  
  1. do_action('acf/create_field', array( 
/core/fields/checkbox.php  
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
  1. do_action('acf/create_field', array( 
/core/controllers/field_group.php  
  1. do_action('acf/create_field', array( 
/core/controllers/export.php  
  1. <?php do_action('acf/create_field', array( 
/core/controllers/everything_fields.php  
  1. do_action('acf/create_field', $field); 
  1. do_action('acf/create_field', $field); 
  1. do_action('acf/create_field', $field); 
  1. do_action('acf/create_field', $field); 
/core/api.php  
  1. do_action('acf/create_field', $field ); 
/acf.php  
  1. do_action('acf/create_field', $field, $post_id);