• Hello!
    I now have Version 1.3.88 installed. If I update the plugin to the current version, the problems begin – the pages where there is a shortcode for UM, are unavailable – there is a technical problem on the site.
    Here is a sample code from your documentation. One line is noted.
    And before the upgrade, it worked fine.
    So, in the disabled function does not work after the update get_role ()
    And if you unwind this line, the site will be posted with an inscription about temporary technical difficulties. If you login.

    $current_user = wp_get_current_user();
    $user_id = $current_user->ID;
    
    if ($user_id) {
    	global $ultimatemember;
    
    	$umRoleName = "N/A";
    	um_fetch_user( $user_id );			
    	
    	// $umRoleName = $ultimatemember->user->get_role();
        echo $umRoleName;
    }

The topic ‘Get_role’ is closed to new replies.