Notifications::trash_answer( integer $post_id, object $_post )
Description #
Remove all notifications related to answer when its get deleted.
Parameters #
- $post_idinteger (Required) Post ID.
- $_postobject (Required) Post object.
Source #
File: addons/notifications/notifications.php
public function trash_answer( $post_id, $_post ) { ap_delete_notifications( array( 'ref_id' => $post_id, 'ref_type' => array( 'answer', 'vote_up', 'vote_down', 'post' ), ) ); }
Expand full source code Collapse full source code View on GitHub: addons/notifications/notifications.php:304
Add your comment