BuddyPress::remove_answer_notify( integer $post_id )

Description #

Remove question notification when corresponding question get deleted.

Parameters #

  • $post_id
    integer (Required) Post ID.

Source #

File: addons/buddypress/buddypress.php

	public function remove_answer_notify( $post_id ) {
		if ( ! bp_is_active( 'notifications' ) ) {
			return;
		}

		$post = get_post( $post_id );
		bp_notifications_delete_all_notifications_by_type( $post->ID, 'anspress', 'new_answer' );
	}

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Add your comment