clean_attachment_cache хук-событиеWP 3.0.0

Fires after the given attachment's cache is cleaned.

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

add_action( 'clean_attachment_cache', 'wp_kama_clean_attachment_cache_action' );

/**
 * Function for `clean_attachment_cache` action-hook.
 * 
 * @param int $id Attachment ID.
 *
 * @return void
 */
function wp_kama_clean_attachment_cache_action( $id ){

	// action...
}
$id(int)
Attachment ID.

Список изменений

С версии 3.0.0 Введена.

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

clean_attachment_cache()
clean_attachment_cache
wp-includes/post.php 7530
do_action( 'clean_attachment_cache', $id );

Где используется хук в WordPress

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