Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Privilaged Members? Special themes, plugins etc


John James Jacoby
Keymaster

@johnjamesjacoby

For a private setup, or one that you won’t be reusing for another client, what I do is create a hidden group and invite the special users into it. When they accept the invitation, you can then build your plugins around checking for people being in that group.

Something simple like…

<?php
define('SPECIAL_GROUP', $your_groups_id);

function is_user_special ( $user_id ) {
if (!$user_id) {
$user_id = bp_loggedin_user_id();
}
if ( groups_is_user_member($user_id, SPECIAL_GROUP) ) {
return true;
}
}
?>

…usually does the trick for me?

Skip to toolbar