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