acf/pre_load_attachment хук-фильтр . ACF 1.0
Allow filter to short-circuit load attachment logic. Alternatively, this filter may be used to switch blogs for multisite media functionality.
Использование
add_filter( 'acf/pre_load_attachment', 'filter_function_name_9348', 10, 2 ); function filter_function_name_9348( $null, $attachment ){ // filter... return $null; }
- $null
- -
- $attachment
- -
Где вызывается хук
acf/pre_load_attachment
acf/includes/api/api-helpers.php 3132
$response = apply_filters( "acf/pre_load_attachment", null, $attachment );