Broke my site, then fixed, did nothing, then did nothing again. Help!
-
I tried using this code, that you had on your site. My site then crashed with function errors etc. So I tried this plugin, #1 it didn’t work #2 I just want to make it automatic so they become subscriber for all sites, and not give the admins the choice to choose or for me to have to select each one. I also tried removing the ; right when the php tag opens “I left it in here” and right after it ends. It fixed the crash but still didn’t work. Please help..
<;?php
/*
Plugin Name: Add Users
Description: Add users to blogs when they visit.
*/function helf_add_users( ) {
global $current_user, $blog_id;if(!is_user_logged_in())
return false;if( !is_user_member_of_blog() ) {
add_user_to_blog($blog_id, $current_user->ID, “subscriber”);
}
}add_action( ‘wp’ , ‘helf_add_users’ , 10);
?>;
- The topic ‘Broke my site, then fixed, did nothing, then did nothing again. Help!’ is closed to new replies.