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!