Hello, is this code still accurate? I copied it in functions.php for the Child theme, I changed the membership level ID but nothing happens when a new user registers.
COPY CODE
add_action('user_register', 'kleo_pmpro_default_level');
function kleo_pmpro_default_level($user_id) {
pmpro_changeMembershipLevel(1,$user_id);
}