wp_new_comment_via_rest_notify_postauthor( WP_Comment $comment )

In this article

Send a notification to the post author when a new note is added via the REST API.

Parameters

$commentWP_Commentrequired
The comment object.

Source

function wp_new_comment_via_rest_notify_postauthor( $comment ) {
	if ( $comment instanceof WP_Comment && 'note' === $comment->comment_type ) {
		wp_new_comment_notify_postauthor( (int) $comment->comment_ID );
	}
}

Changelog

VersionDescription
6.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.