acf/pre_load_reference

acf/pre_load_reference

Hook Type: filter

See hook in core

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

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

  • /includes/acf-value-functions.php line 21
     */
    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 );