AnsPress_Hooks::question_subscription( integer $post_id, object $_post )
Description #
Subscribe OP to his own question.
Parameters #
- $post_idinteger (Required) Post ID.
- $_postobject (Required) post objct.
Changelog #
Version | Description |
---|---|
unknown Introduced | unknown Introduced |
4.1.5 | Introduced. |
Source #
File: includes/hooks.php
public static function question_subscription( $post_id, $_post ) { if ( $_post->post_author > 0 ) { ap_new_subscriber( $_post->post_author, 'question', $_post->ID ); } }
Expand full source code Collapse full source code View on GitHub: includes/hooks.php:917
Add your comment