Notifications::unselect_answer( object $_post )

Description #

Remove notification when users answer get unselected.

Parameters #

  • $_post
    object (Required) Post object.

Source #

File: addons/notifications/notifications.php

	public function unselect_answer( $_post ) {
		ap_delete_notifications(
			array(
				'parent'   => $_post->post_parent,
				'ref_type' => 'answer',
				'verb'     => 'best_answer',
			)
		);
	}

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