AnsPress_Notification_Hook::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/free/notification.php
public static function trash_question( $post_id, $_post ) { ap_delete_notifications( array( 'parent' => $post_id, 'ref_type' => [ 'answer', 'vote_up', 'vote_down', 'post' ], ) ); }
Expand full source code Collapse full source code View on GitHub: addons/free/notification.php:231
Add your comment