acf/pre_load_post_id

acf/pre_load_post_id

Hook Type: filter

See hook in core

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

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

  • /includes/api/api-helpers.php line 2146
    2142
    2143
    2144
    2145
    2146
    2147
    2148
    2149
    2150
    2151
    2152
    */
    function acf_get_valid_post_id( $post_id = 0 ) {
     
        // allow filter to short-circuit load_value logic
        $preload = apply_filters( 'acf/pre_load_post_id', null, $post_id );
        if ( $preload !== null ) {
            return $preload;
        }
     
        // vars
        $_post_id = $post_id;