I have a multisite setup where I would like site Administrators to be able to add New Users with the Skip Notification Email option.
By default, Wordpress only allows Super Administrators this privilege in a multisite setup. I have used the code below to fix this problem except it logs the Administrator out after each New User is added. I have tried removing the redirect line but the administrators are still being logged out.
function your_disable_activation( $user, $user_email, $key, $meta = '' ) { // Activate the user $user_id = wpmu_activate_signup( $key ); wp_set_auth_cookie( $user_id, true, is_ssl() ); wp_redirect( /*redirect to */ site_url() ); exit; } add_filter( 'wpmu_signup_user_notification', 'your_disable_activation', 10, 4 ); How can I run this code (or similar code) without the Administrator being logged out each time?
Thanks!