Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('wp_set_comment_status', function($comment_id, $status){
- if (in_array($status, array('approve', 'hold'))){
- $comment = get_comment( $comment_id );
- Swift_Performance_Cache::clear_post_cache($comment->comment_post_ID);
- }
- }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement