acf/pre_update_metadata
acf/pre_update_metadata
Appears in: advanced-custom-fields.6.4.2
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.4.2apply_filters('acf/pre_update_metadata') is found 2 times:
- /includes/acf-meta-functions.php line 147
* @return integer|boolean Meta ID if the key didn't exist, true on successful update, false on failure. */ function acf_update_metadata( $post_id = 0, $name = '', $value = '', $hidden = false ) { // Allow filter to short-circuit logic. $pre = apply_filters( 'acf/pre_update_metadata', null, $post_id, $name, $value, $hidden ); if ( $pre !== null ) { return $pre; } // Decode $post_id for $type and $id. $decoded = acf_decode_post_id( $post_id );
- /includes/acf-meta-functions.php line 433
return null; } // Allow filter to short-circuit logic. $pre = apply_filters( 'acf/pre_update_metadata', null, $post_id, $field['name'], $value, $hidden ); if ( $pre !== null ) { return $pre; } // Decode the $post_id for $type and $id. $decoded = acf_decode_post_id( $post_id );