acf/pre_load_metadata

acf/pre_load_metadata

Hook Type: filter

See hook in core

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

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

  • /includes/acf-meta-functions.php line 127
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    * @return  mixed
     */
    function acf_get_metadata( $post_id = 0, $name = '', $hidden = false ) {
        // Allow filter to short-circuit logic.
        $null = apply_filters( 'acf/pre_load_metadata', null, $post_id, $name, $hidden );
        if ( $null !== null ) {
            return ( $null === '__return_null' ) ? null : $null;
        }
     
        // Decode $post_id for $type and $id.
        $decoded = acf_decode_post_id( $post_id );