Notifications::trash_answer( integer $post_id, object $_post )

Description #

Remove all notifications related to answer when its get deleted.

Parameters #

  • $post_id
    integer (Required) Post ID.
  • $_post
    object (Required) Post object.

Source #

File: addons/notifications/notifications.php

	public function trash_answer( $post_id, $_post ) {
		ap_delete_notifications(
			array(
				'ref_id'   => $post_id,
				'ref_type' => array( 'answer', 'vote_up', 'vote_down', 'post' ),
			)
		);
	}

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