wp_set_comment_status

Advertisement

Summery Summery

Fires immediately before transitioning a comment’s status from one to another in the database.

Syntax Syntax

do_action( 'wp_set_comment_status', int $comment_id, string|bool $comment_status )

Parameters Parameters

$comment_id

Comment ID.

$comment_status

Current comment status. Possible values include 'hold', 'approve', 'spam', 'trash', or false.

Source Source

File: wp-includes/comment.php

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply