acf/pre_load_reference
acf/pre_load_reference
Appears in: advanced-custom-fields.6.3.5
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.3.5apply_filters('acf/pre_load_reference') is found 1 times:
- /includes/acf-value-functions.php line 211718192021222324252627
*/
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 );