Notifications::trash_question( integer $post_id, object $_post )
Description #
Remove all notifications related to question when its get deleted.
Parameters #
- $post_idinteger (Required) Post ID.
- $_postobject (Required) Post object.
Source #
File: addons/notifications/notifications.php
public function trash_question( $post_id, $_post ) { ap_delete_notifications( array( 'parent' => $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:262
Add your comment