transition_comment_status

transition_comment_status

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('transition_comment_status') is found 1 times:

  • /wp-includes/comment.php line 1817
    		 * @param int|string $new_status The new comment status.
    		 * @param int|string $old_status The old comment status.
    		 * @param WP_Comment $comment    Comment object.
    		 */
    		do_action( 'transition_comment_status', $new_status, $old_status, $comment );
    		/**
    		 * Fires when the comment status is in transition from one specific status to another.
    		 *
    		 * The dynamic portions of the hook name, `$old_status`, and `$new_status`,
    		 * refer to the old and new comment statuses, respectively.
    		 *
    

See this hook used in plugins: