acf/pre_load_meta

acf/pre_load_meta

Hook Type: filter

See hook in core

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

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

  • /includes/acf-meta-functions.php line 16
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    */
    function acf_get_meta( $post_id = 0 ) {
     
        // Allow filter to short-circuit load_value logic.
        $null = apply_filters( 'acf/pre_load_meta', null, $post_id );
        if ( $null !== null ) {
            return ( $null === '__return_null' ) ? null : $null;
        }
     
        // Decode $post_id for $type and $id.
        $decoded = acf_decode_post_id( $post_id );