API Restrict User Access
-
First of all, thanks for the great plugin!
I am using Restrict User Access version 2.2.23 with WordPress 6.4.3 and PHP 7.4.
Now I am trying to use your API.
This works:
$wp_user=new WP_User(2);
$rua_user=rua_get_user($wp_user);
$rua_level=rua_get_level(83);
$rua_level_by_name=rua_get_level_by_name(“k01”);But this:
$rua_level_members=rua_get_level_members($rua_level);
$rua_level_cap=rua_get_level_cap(83);
$rua_level_members=rua_get_level_members($rua_level);Does not work.
I get
PHP Fatal Error: Uncaught error: Class ‘WPCAMeta’ not found in …\wp-content\plugins\restrict-user-access\level.php:334I’m not sure if I’m using your API incorrectly. Can you give me 1 or 2 working examples?
- The topic ‘API Restrict User Access’ is closed to new replies.