Groups support for Relevanssi
-
Hi,
I’m looking into adding Groups support in Relevanssi search plugin, so that the search would only return those posts the user is allowed to see.
Looks like this is the way to check whether a user is allowed to see a post, am I right?
$user = wp_get_current_user(); $access = Groups_Post_Access::user_can_read_post($doc, $user->ID);What would you suggest to be the best way to check whether Groups is installed or not?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Groups support for Relevanssi’ is closed to new replies.