wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_new_comment_via_rest_notify_postauthor › WordPress Function

Od6.9.0
Przestarzałyn/a
› wp_new_comment_via_rest_notify_postauthor ( $comment )
Parametry:
  • (WP_Comment) $comment The comment object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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



Źródło

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