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.7.2

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

  • /wp-includes/comment.php line 1864
    1860
    1861
    1862
    1863
    1864
    1865
    1866
    1867
    1868
    1869
    1870
         *
         * @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