AnsPress_BP_Hooks::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/free/buddypress.php

	public static 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, buddypress()->ap_notifier->id, 'new_answer_' . $post->post_parent );
	}

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