Notifications::delete_comment( object $comment )

Description #

Remove notification on deleting comment.

Parameters #

  • $comment
    object (Required) Comment object.

Source #

File: addons/notifications/notifications.php

	public function delete_comment( $comment ) {
		ap_delete_notifications(
			array(
				'actor'    => $comment->user_id,
				'parent'   => $comment->comment_post_ID,
				'ref_type' => 'comment',
			)
		);
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment