Docs: Expand the $comment_approved argument description for 'comment_post' action.
Props cfinke. Fixes #33903. Built from https://develop.svn.wordpress.org/trunk@34253 git-svn-id: http://core.svn.wordpress.org/trunk@34217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1633,8 +1633,8 @@ function wp_new_comment( $commentdata ) {
|
||||
*
|
||||
* @since 1.2.0
|
||||
*
|
||||
* @param int $comment_ID The comment ID.
|
||||
* @param int $comment_approved 1 (true) if the comment is approved, 0 (false) if not.
|
||||
* @param int $comment_ID The comment ID.
|
||||
* @param int|string $comment_approved 1 if the comment is approved, 0 if not, 'spam' if spam.
|
||||
*/
|
||||
do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user