acf/update_value

The Advanced Custom Fields acf update value hook.

Description

do_action( 'acf/update_value', (unknown) $value, (unknown) $post_id, (unknown) $field ); 

Parameters (3)

0. $value (unknown)
The value.
1. $post_id (unknown)
The post id.
2. $field (unknown)
The field.

Usage

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

Defined (2)

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

/core/api.php  
  1. do_action('acf/update_value', $value, $post_id, $field ); 
/acf.php  
  1. do_action('acf/update_value', $v, $post_id, $f );