AnsPress_Hooks::answer_subscription( integer $post_id, object $_post )
Description #
Subscribe author to their answer. Answer id is stored in event name.
Parameters #
- $post_idinteger (Required) Post ID.
- $_postobject (Required) Post object.
Changelog #
Version | Description |
---|---|
unknown Introduced | unknown Introduced |
4.1.5 | Introduced. |
Source #
File: includes/hooks.php
public static function answer_subscription( $post_id, $_post ) { if ( $_post->post_author > 0 ) { ap_new_subscriber( $_post->post_author, 'answer_' . $post_id, $_post->post_parent ); } }
Expand full source code Collapse full source code View on GitHub: includes/hooks.php:934
Add your comment