BuddyPress::remove_answer_notify( integer $post_id )
Description #
Remove question notification when corresponding question get deleted.
Parameters #
- $post_idinteger (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' );
}
Expand full source code Collapse full source code View on GitHub: addons/buddypress/buddypress.php:589
Add your comment