Restrict access level name / id
-
Hi, I am having difficulty penetrating the restrict level plugin’s php documentation. What i would like to do is to implement the shortcode [restrict level=”level_name”] in a php function. I found this condition in the wp documentation:
if(rua_get_user()->has_level($level_id)) { … }
but as i uderstand one has to enter and integer id, and i would like to enter the level name, as in the shortcode.
Can you please help me to find the correct function to use?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Restrict access level name / id’ is closed to new replies.