acf/pre_update_metadata

acf/pre_update_metadata

Hook Type: filter

See hook in core

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

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

  • /includes/acf-meta-functions.php line 171
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    * @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 );