• Resolved silverwebsites

    (@silverwebsites)


    I’m using Ultimate Member on a site I’m building for its amazing membership directory and user interface. I have 2 separate roles on the website, one is free and one is paid via a subscription. For the subscription aspect I’m installed Restrict Content Pro as recommended by Ultimate Member support. The issue I have is that when registering a new user via RCP, it doesn’t create the community role meta data needed. As the community role is key to the bespoke membership directory I’ve created for the paid role, it all goes wrong.

    I’ve tried adding the following hook into functions.php to set the user meta, but it just ignores it.

    function set_UM_role_properly( $user_id ) {
    $user_id = get_current_user_id();
    $role = get_user_meta( $user_id, ‘role’, true);
    if (( $role == ‘member’ ) && ( $user_role != ‘member’ )) {
    update_user_meta($user_id, ‘role’, ‘member’);
    }
    }
    add_action(‘rcp_form_processing’, ‘set_UM_role_properly’);

    Really appreciate any help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am not understanding you, how do you want UM to handle user roles if you are using a different plugin to register your users?

    Thread Starter silverwebsites

    (@silverwebsites)

    Thanks for the reply. UM doesn’t do paid subscriptions but has a fantastic interface and member directory. I’m therefore using the other plugin to handle user registration for paid members and UM for user registration for unpaid. All I need is a way to set UM user data for members registered through the other plugin. Would appreciate any help.

    There is only one database per domain name. UM only adds new data with its own mySQL rows. If what you’re trying to do is have at the front end one aspect of the UM registration form merged with another plugin’s registration form, you will need to hire a developer for that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help please! UM and Restrict Content Pro’ is closed to new replies.