comment_{$old_status}_to_{$new_status}

Advertisement

Summery Summery

Fires when the comment status is in transition from one specific status to another.

Syntax Syntax

do_action( "comment_{$old_status}_to_{$new_status}", WP_Comment $comment )

Description Description

The dynamic portions of the hook name, $old_status, and $new_status, refer to the old and new comment statuses, respectively.

Parameters Parameters

$comment

Comment object.

Source Source

File: wp-includes/comment.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply