comment_{$old_status}_to_{$new_status}

comment_{$old_status}_to_{$new_status}

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

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('comment_{$old_status}_to_{$new_status}') is found 1 times:

  • /wp-includes/comment.php line 1837
    		 * @since 2.7.0
    		 *
    		 * @param WP_Comment $comment Comment object.
    		 */
    		do_action( "comment_{$old_status}_to_{$new_status}", $comment );
    	}
    	/**
    	 * Fires when the status of a specific comment type is in transition.
    	 *
    	 * The dynamic portions of the hook name, `$new_status`, and `$comment->comment_type`,
    	 * refer to the new comment status, and the type of comment, respectively.