BuddyPress::remove_comment_notify( object $comment )
Description #
Remove answer notification when corresponding answer get deleted.
Parameters #
- $commentobject (Required) Comment object.
Source #
File: addons/buddypress/buddypress.php
public function remove_comment_notify( $comment ) { if ( ! bp_is_active( 'notifications' ) ) { return; } if ( isset( $comment->comment_ID ) && $comment->comment_ID ) { bp_notifications_delete_all_notifications_by_type( $comment->comment_ID, 'anspress', 'new_comment' ); } else { $comments = get_comments( array( 'post_id' => $comment ) ); foreach ( (array) $comments as $comment ) { bp_notifications_delete_all_notifications_by_type( $comment->comment_ID, 'anspress', 'new_comment' ); } } }
Expand full source code Collapse full source code View on GitHub: addons/buddypress/buddypress.php:603
Add your comment