AnsPress_Notification_Hook::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/free/notification.php
public static function trash_answer( $post_id, $_post ) {
ap_delete_notifications( array(
'ref_id' => $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:262
Add your comment