acf/update_field

The Advanced Custom Fields acf update field hook.

Description

do_action( 'acf/update_field', (unknown) $field, (unknown) $field_field_group ); 

Parameters (2)

0. $field (unknown)
The field.
1. $field_field_group (unknown)
The field field group.

Usage

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

Defined (2)

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

/core/fields/radio.php  
  1. do_action('acf/update_field', $field, $field['field_group']); 
/core/controllers/field_group.php  
  1. do_action('acf/update_field', $field, $post_id );