This topic has 1 reply, 2 voices, and was last updated 9 years by Laura.

  • Author
  • #156504
     Elijeh
    Participant

    Hi there, I put the following code in my functions.php file so that when a user registers for my site they are automatically assigned my “basic” (free) membership level.

    <?php add_action(‘user_register’, ‘kleo_pmpro_default_level’);
    function kleo_pmpro_default_level($user_id) {
    pmpro_changeMembershipLevel(1, $user_id); //
    }
    /**
    * @package WordPress
    * @subpackage Sweetdate
    * @author SeventhQueen <themesupport@seventhqueen.com>
    * @since Sweetdate 1.0
    */

    /**
    * Sweetdate Child Theme Functions
    * Add extra code or replace existing functions
    */

    ?>

    Now when they log in after registration, they are directed to the home page but I want any user who hasn’t subscribed to my paid level (premium) to land on the Levels page when they login so they will be reminded that they want to upgrade to the paid level. Can you please tell me how to accomplish this?

    Thank you!

    #156570
     Laura
    Moderator

    Hello, have you tried the plugin peters login redirect? Maybe it helps 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?