AnsPress_Email_Hooks::answer_subscription( integer $post_id, object $_post )
Description #
Subscribe to answer.
Parameters #
- $post_idinteger (Required) Post ID.
- $_postobject (Required) post objct.
Source #
File: addons/free/email.php
public static function answer_subscription( $post_id, $_post ) {
if ( $_post->post_author > 0 ) {
ap_new_subscriber( $_post->post_author, 'answer_' . $_post->post_parent, $_post->ID );
}
}
Expand full source code Collapse full source code View on GitHub: addons/free/email.php:614
Add your comment