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', 'wp_kama_acf_pre_load_attachment_filter', 10, 2 );

/**
 * Function for `acf/pre_load_attachment` filter-hook.
 * 
 * @param  $null       
 * @param  $attachment 
 *
 * @return 
 */
function wp_kama_acf_pre_load_attachment_filter( $null, $attachment ){

	// filter...
	return $null;
}
$null
-
$attachment
-

Где вызывается хук

acf_get_attachment()
acf/pre_load_attachment
acf/includes/api/api-helpers.php 2944
$response = apply_filters( 'acf/pre_load_attachment', null, $attachment );

Где используется хук в Advanced Custom Fields PRO

Использование не найдено.