acf/pre_load_attachment
acf/pre_load_attachment
Appears in: advanced-custom-fields.6.2.7
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.2.7apply_filters('acf/pre_load_attachment') is found 1 times:
- /includes/api/api-helpers.php line 254125372538253925402541254225432544254525462547
function
acf_get_attachment(
$attachment
) {
// Allow filter to short-circuit load attachment logic.
// Alternatively, this filter may be used to switch blogs for multisite media functionality.
$response
= apply_filters(
'acf/pre_load_attachment'
, null,
$attachment
);
if
(
$response
!== null ) {
return
$response
;
}
// Get the attachment post object.
$attachment
= get_post(
$attachment
);