wp_new_comment_notify_moderator

Advertisement

Summery Summery

Send a comment moderation notification to the comment moderator.

Syntax Syntax

wp_new_comment_notify_moderator( int $comment_ID )

Parameters Parameters

$comment_ID

(Required) ID of the comment.

Return Return

(bool) True on success, false on failure.

Source Source

File: wp-includes/comment.php

 *                        executing wp_die()? Default false.
 * @return int|false|WP_Error The ID of the comment on success, false or WP_Error on failure.
 */
function wp_new_comment( $commentdata, $wp_error = false ) {
	global $wpdb;

	if ( isset( $commentdata['user_ID'] ) ) {
		$commentdata['user_ID'] = (int) $commentdata['user_ID'];
		$commentdata['user_id'] = $commentdata['user_ID'];
	}

	$prefiltered_user_id = ( isset( $commentdata['user_id'] ) ) ? (int) $commentdata['user_id'] : 0;

	/**
	 * Filters a comment's data before it is sanitized and inserted into the database.

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply