UnchartedDesign
Forum Replies Created
-
Okay so you need the user ID, and the group ID. You can see the group ID in the URL when you’re editing the level. Or, you can get it by calling rua_get_level_by_name($slug) where $slug is ‘my-formatted-level-name’
You’ll want to hook into the authorization or login hook, grab the user’s ID and put them in a group.
$user = rua_get_user(get_current_user_id()); $level = rua_get_level_by_name('platinum'); $user->add_level($level->ID);The access level is stored in the usermeta table, meta key _ca_level
Reference:
https://developer.ww.wp.xz.cn/reference/functions/get_current_user_id/
https://codex.ww.wp.xz.cn/Plugin_API/Action_Reference/wp_loginForum: Themes and Templates
In reply to: Mouseover Taskbar Shows <span> CodeHey, anyone else who runs into this. There is a simple fix:
strip_tags(get_the_title())or whatever other section you’re pulling, just put strip_tags() around it.
Thanks for pointing me to the culprit- front end editor!
Forum: Plugins
In reply to: [Plugin: Registered Users Only 2] TypoMine says: “Only registeres users can watch site”
Should read: “Only registered users can view this site.”Forum: Fixing WordPress
In reply to: [Plugin: Contact Form 7] How to “auto fill” field when registered ?Just found the following:
http://ww.wp.xz.cn/extend/plugins/si-contact-form/
Haven’t tried it out but it looks good.