• I need to change a user role after 14 days of registration.

    Default user role = “Member”

    After 14 days if “Member” Still = “Member” assign new user role to “Expired”

    Solutions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter golfinred

    (@golfinred)

    What if my solution is the change wp role and sync that with um role. I know it works the other way around where you can set a um role and have it sync with wp. But what if I change wp role and have it change um role?

    I found this code……. can someone help?

    um_fetch_user( $user_id );

    $wp_role = $user->roles[0];

    // if WP role is expired, set UM role to expired
    if ( $wp_role == ‘expired’ ) {
    update_user_meta($user_id, ‘role’, ‘expired’);
    }

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @golfinred,

    I’m afraid, Ultimate member doesn’t support this feature in the current version, however, we have plans to implement this option in the future updates. If you need this feature right now I suggest hiring a developer for assistance.

    Regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change User Role After Given TIme Interval after register’ is closed to new replies.