comment_{$new_status}_{$comment->comment_type}

comment_{$new_status}_{$comment->comment_type}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('comment_{$new_status}_{$comment->comment_type}') is found 1 times:

  • /wp-includes/comment.php line 1845
    	 *
    	 * @param string     $comment_id The comment ID as a numeric string.
    	 * @param WP_Comment $comment    Comment object.
    	 */
    	do_action( "comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment );
    }
    
    /**
     * Clears the lastcommentmodified cached value when a comment status is changed.
     *
     * Deletes the lastcommentmodified cache key when a comment enters or leaves