AnsPress_Email_Hooks::delete_subscriptions( integer $postid )
Description #
Delete subscriptions.
Parameters #
- $postidinteger (Required) Post ID.
Source #
File: addons/free/email.php
public static function delete_subscriptions( $postid ) { $_post = get_post( $postid ); if ( 'question' === $_post->post_type ) { // Delete question subscriptions. ap_delete_subscribers( 'question', $postid ); } if ( 'answer' === $_post->post_type ) { // Delete question subscriptions. ap_delete_subscribers( 'answer_' . $_post->post_parent ); } }
Expand full source code Collapse full source code View on GitHub: addons/free/email.php:636
Add your comment