clean_attachment_cache WordPress Action Hook
The clean_attachment_cache hook is used to clean up the attachment cache. This hook is called when an attachment is deleted from the WordPress media library.
do_action( 'clean_attachment_cache', int $id ) #
Fires after the given attachment’s cache is cleaned.
Parameters
- $id
(int)Attachment ID.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |