transition_comment_status WordPress Action Hook

The transition_comment_status hook is triggered when the status of a comment is changed. The hook takes two arguments: the new status and the old status.

do_action( 'transition_comment_status', int|string $new_status, int|string $old_status, WP_Comment $comment ) #

Fires when the comment status is in transition.


Parameters

$new_status

(int|string)The new comment status.

$old_status

(int|string)The old comment status.

$comment

(WP_Comment)Comment object.


Top ↑

Source

File: wp-includes/comment.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More