sbrajesh

Brajesh Singh

Apr 25th, 2010
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2. /*disable blog signup for non logged in member*/
  3. add_filter("wpmu_active_signup","bpdev_check_current_users_blog");
  4. function bpdev_check_current_users_blog($active_signup){
  5.     global $current_user;
  6.     if( !is_user_logged_in() )
  7.         return "none";
  8.    else
  9.  
  10.             return $active_signup;//if the user is logged in, do not change the site policies
  11.  
  12.    
  13.    
  14.    
  15. }
  16. ?>
Add Comment
Please, Sign In to add comment