• Resolved peppelupo91

    (@peppelupo91)


    Hi, I’m using add-on-woocommerce-mailpoet but if a logged in user reach the checkout page the subcription checkbox is not showed. I view in code that if a logged in user is already subscribed to any list, the checkbox doesn’t appear.
    if(is_user_logged_in()){
    $current_user = wp_get_current_user();
    $user_subscriber = Subscriber::whereEqual(’email’, $current_user->user_email)->whereEqual(‘status’, ‘subscribed’)->findArray();

    //If logged in user is not mailpoet subscriber
    if(empty($user_subscriber)){
    $this->run_actions();
    }
    }
    I noticed that when a user register in wordpress, he is subscribed to a list “WordPress User” by default, this cause that subscription checkbox is not displayed for any logged in user. I want to permit my logged in user to subscribe to a list I created also if they are already in “wordpress users” list. Is it possible?

  • The topic ‘Subscription form not showing for logged in user’ is closed to new replies.