On this page
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_statusint|string-
The new comment status.
$old_statusint|string-
The old comment status.
$commentWP_Comment-
Comment object.
Source
File: wp-includes/comment.php. View all references
do_action( 'transition_comment_status', $new_status, $old_status, $comment );
Related
Used By
| Used By | Description |
|---|---|
| wp_transition_comment_status() wp-includes/comment.php | Calls hooks for when a comment status transition occurs. |
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/transition_comment_status