buddypress prive private 1
Buddypress
Ziyad Bachalany

Snippet to make a BuddyPress social network private and force registration

Here is a little piece of code that I find very useful in my BuddyPress sites. It allows me to make the social network private, and to access it, you have to become a member. [code]function sqr_prevent_search_guest_user() { if ( class_exists( 'BuddyPress' ) ) { if (!is_user_logged_in() && (bp_is_directory() || bp_is_user())) { wp_redirect(home_url()

Read more »

Don't miss business advice by email

No spam, just an email when new content is published.

en_US