acf/pre_load_reference

acf/pre_load_reference

Hook Type: filter

See hook in core

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

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

  • /includes/acf-value-functions.php line 21
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    */
    function acf_get_reference( $field_name, $post_id ) {
     
        // Allow filter to short-circuit load_value logic.
        $reference = apply_filters( 'acf/pre_load_reference', null, $field_name, $post_id );
        if ( $reference !== null ) {
            return $reference;
        }
     
        // Get hidden meta for this field name.
        $reference = acf_get_metadata( $post_id, $field_name, true );