acf/pre_load_reference
acf/pre_load_reference
Appears in: advanced-custom-fields.6.4.2
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.4.2apply_filters('acf/pre_load_reference') is found 1 times:
- /includes/acf-value-functions.php line 20
* @return string|null The field key, or null on failure. */ 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; } // Back-compat. $reference = apply_filters( 'acf/pre_load_metadata', null, $post_id, $field_name, true );