wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_new_comment_via_rest_notify_postauthor › WordPress Function

Since6.9.0
已弃用n/a
› wp_new_comment_via_rest_notify_postauthor ( $comment )
参数:
  • (WP_Comment) $comment The comment object.
    Required: Yes
定义在:
文档:

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



源码

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 );
	}
}