AnsPress_Hooks::question_subscription( integer $post_id, object $_post )

Description #

Subscribe OP to his own question.

Parameters #

  • $post_id
    integer (Required) Post ID.
  • $_post
    object (Required) post objct.

Changelog #

VersionDescription
unknown Introducedunknown Introduced
4.1.5Introduced.

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 );
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment