AnsPress_Email_Hooks::comment_subscription( object $comment )

Description #

Add comment subscriber.

Parameters #

  • $comment
    object (Required) Comment object.

Source #

File: addons/free/email.php

	public static function comment_subscription( $comment ) {
		if ( $comment->user_id > 0 ) {
			ap_new_subscriber( $comment->user_id, 'comment_' . $comment->comment_post_ID, $comment->comment_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