acf/pre_update_metadata

acf/pre_update_metadata

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.1.6

apply_filters('acf/pre_update_metadata') is found 1 times:

  • /includes/acf-meta-functions.php line 171
     * @return  int|bool 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 );