Viewing 1 replies (of 1 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Gilmour,

    You can’t retrieve a user’s level using the public function. However, you can use shortcodes within template files. As such, you could try something like:

    if (do_shortcode('[user-data field_name="Level"]') == 'Level Name'){
    //do something
    }

    You’d have to change the ‘Level Name’ to the actual name of your level.

Viewing 1 replies (of 1 total)

The topic ‘public function to get user level’ is closed to new replies.