$email = $_COOKIE['comment_author_email' . COOKIEHASH];
            return $email;
        } else {
            $comment_cookie_lifetime = apply_filters('comment_cookie_lifetime', 30000000);
            setcookie('comment_author_email_' . COOKIEHASH, $_POST['email'], time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
            setcookie('pms_comment_author_email', $_POST['email'], time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
            return $_POST['email'];
        }
        return $email;
    }
    public function comment_extra_fields()
    {
        echo '<div class="comment-form-pms-extra">';
        echo '<div class="pms-optin">';
        printf('<input type="checkbox" name="prompt_comment_subscribe" value="1" id="pms_comment_subscribe">&nbsp;&nbsp;');
        printf('<label for="pms_comment_subscribe">%s</label>', esc_html__('Participate in this conversation via email', 'postmatic-social'));
        echo '</div><!-- .pms-optin -->';
        echo '<div class="pms-optin-form">';
        esc_html_e('Please enter an e-mail address', 'postmatic-social');
        echo '<input type="text" name="pms-email" value="" id="pms-email" />';
        echo '</div><!-- .pms-optin-form -->';
        echo '</div><!-- .pms-opttin -->';
    }
}
define('POSTMATIC_SOCIAL_SESSION_USER', 'user');
//todo - Update this link
define('POSTMATIC_SOCIAL_HELP_URL', 'http://docs.gopostmatic.com/article/185-setup');
require_once Postmatic_Social::get_plugin_dir('/functions/Postmatic_Social_Comments_Session.php');
require_once Postmatic_Social::get_plugin_dir('/functions/Postmatic_Social_Comments_Plugin.php');
Postmatic_Social::get_instance();