clean_comment_cache
Fires immediately after a comment has been removed from the object cache.
Usage
add_action( 'clean_comment_cache', 'wp_kama_clean_comment_cache_action' );
/**
* Function for `clean_comment_cache` action-hook.
*
* @param int $id Comment ID.
*
* @return void
*/
function wp_kama_clean_comment_cache_action( $id ){
// action...
}
- $id(int)
- Comment ID.
Changelog
| Since 4.5.0 | Introduced. |
Where the hook is called
clean_comment_cache
wp-includes/comment.php 3422
do_action( 'clean_comment_cache', $id );