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

Description #

Subscribe author to their answer. Answer id is stored in event name.

Parameters #

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

Changelog #

VersionDescription
unknown Introducedunknown Introduced
4.1.5Introduced.

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

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