clean_attachment_cache
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
wp-includes/post.php 7912
do_action( 'clean_attachment_cache', $id );