Categories
WordPress

WordPress Notifications Management

Add email address for receiving comments notification (update the Email):

add_filter( 'comment_moderation_recipients', 'condless_comment_moderation_recipients', 11, 2 );
add_filter( 'comment_notification_recipients', 'condless_comment_moderation_recipients', 11, 2 );
function condless_comment_moderation_recipients( $emails, $comment_id ) {
	array_push( $emails, "info@example.com" );
	return $emails;
}

Leave a Reply

Your email address will not be published. Required fields are marked *