clean_attachment_cache action-hookWP 3.0.0

Fires after the given attachment's cache is cleaned.

Usage

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.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.