How to add a user to all blogs in WordPress Multi User WPMU
Monday, July 21st, 2008OPEN:
wp-includes/wpmu-functions.php
FIND:
function wpmu_create_blog($domain, $path, $title, $user_id, $meta = ”, $site_id = 1) {
$domain = addslashes( $domain );
$title = addslashes( $title );
$user_id = (int) $user_id;’
Then, A little bit further down FIND:
add_user_to_blog($blog_id, $user_id, ‘administrator’);
after this line ADD:
add_user_to_blog($blog_id, X, ‘administrator’);`
where X is the userid of the user you wish to add, this can be repeated if you have multiple […]