• Resolved Ddaro

    (@darney)


    when I try to call functions from the documentation
    <?php $ultimatemember->user->get_role(); ?>

    I get an error

    Fatal error: Uncaught Error: Call to a member function get_role()
    Why can’t I get the current role?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Towhid

    (@cryptex_vinci)

    Hi @darney

    Since version 2.0+ global variable $ultimatemember is deprecated. It’s replaced with UM(). You can try following method:

    UM()->user()->get_role();

    Thanks

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @darney

    Please feel free to re-open this thread if any questions may come up.

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_role problem’ is closed to new replies.