05 Mar WPMU: Checking if User is Member of Blog
When I first started using WPMU, I assumed that when you registered subscribers to a specific blog, they would only be able to access that blog. I was completely wrong. I was shocked to not see any setting that kept users out of other blogs once they were registered.
Here is a fix to keep users separated. I put this in the header.php, inside my theme folder.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | if( ! is_user_logged_in() ): //Do Nothing else: // Get current user Info global $current_user; get_currentuserinfo(); // Check if user is member of blog if ( is_user_member_of_blog( $current_user->ID ) ) { // If they are a member } else { //If they are not a member of blog, redirect them somewhere else wp_redirect( 'http://example.com' ); } endif; |
cialis online pills
Posted at 09:45h, 13 Maycialis online pills
cialis online pills
tadalafil patent expiration
Posted at 10:18h, 13 Maytadalafil patent expiration
tadalafil patent expiration
levitra online usa
Posted at 21:29h, 13 Maylevitra online usa
levitra online usa
price of ivermectin tablets
Posted at 12:39h, 17 Mayprice of ivermectin tablets
price of ivermectin tablets
cost of ivermectin pill
Posted at 19:25h, 17 Maycost of ivermectin pill
cost of ivermectin pill
canadian pharmacy viagra prices
Posted at 22:00h, 17 Maycanadian pharmacy viagra prices
canadian pharmacy viagra prices
ivermectin cream 1%
Posted at 03:50h, 18 Mayivermectin cream 1%
ivermectin cream 1%
prednisone for sinus infection
Posted at 13:03h, 26 Juneprednisone for sinus infection
prednisone for sinus infection
how much provigil should i take
Posted at 13:53h, 26 Junehow much provigil should i take
how much provigil should i take
swiss chems nolvadex
Posted at 19:13h, 26 Juneswiss chems nolvadex
swiss chems nolvadex
is trazodone addictive
Posted at 07:37h, 27 Juneis trazodone addictive
is trazodone addictive
how much will 5 mg lisinopril lower blood pressure
Posted at 07:41h, 27 Junehow much will 5 mg lisinopril lower blood pressure
how much will 5 mg lisinopril lower blood pressure
ampicillin contraindications
Posted at 19:48h, 27 Juneampicillin contraindications
ampicillin contraindications
doxycycline for dogs side effects
Posted at 22:07h, 27 Junedoxycycline for dogs side effects
doxycycline for dogs side effects
how long does it take for valtrex to work
Posted at 05:26h, 01 Julyhow long does it take for valtrex to work
how long does it take for valtrex to work
does tadalafil increase size
Posted at 12:40h, 20 Decemberdoes tadalafil increase size
does tadalafil increase size
tadalafil online pharmacy
Posted at 15:13h, 20 Decembertadalafil online pharmacy
tadalafil online pharmacy
best place to buy levitra
Posted at 17:34h, 20 Decemberbest place to buy levitra
best place to buy levitra
sildenafil side effects
Posted at 04:56h, 21 Decembersildenafil side effects
sildenafil side effects
sildenafil cost
Posted at 06:38h, 21 Decembersildenafil cost
sildenafil cost
buy levitra usa
Posted at 21:53h, 22 Decemberbuy levitra usa
buy levitra usa
tadalafil and blood pressure medication
Posted at 22:49h, 22 Decembertadalafil and blood pressure medication
tadalafil and blood pressure medication
cialis blood pressure side effects
Posted at 23:58h, 22 Decembercialis blood pressure side effects
cialis blood pressure side effects