AnsPress_Email_Hooks::answer_subscription( integer $post_id, object $_post )

Description #

Subscribe to answer.

Parameters #

  • $post_id
    integer (Required) Post ID.
  • $_post
    object (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 );
		}
	}

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