acf/load_attachment хук-фильтр . ACF 1.0
Filters the attachment $response after it has been loaded.
Использование
add_filter( 'acf/load_attachment', 'filter_function_name_1921', 10, 3 ); function filter_function_name_1921( $response, $attachment, $meta ){ // filter... return $response; }
- $response(массив)
- Array of loaded attachment data.
- $attachment(WP_Post)
- Attachment object.
- $meta(массив/false)
- Array of attachment meta data, or false if there is none.
Где вызывается хук
acf/load_attachment
acf/includes/api/api-helpers.php 3236
return apply_filters( "acf/load_attachment", $response, $attachment, $meta );