WordPress Multisite allow site admin to add user without email confirmation

In WordPress Multisite,a site admin (not a super admin) doesn’t have the option “Add the user without sending them a confirmation email” when adding a new user.
Is there a way to bypass the confirmation email or to add this option also for site admin ?
Many thanks

Related posts

2 comments

  1. You will not be able to enable the checkbox for non-super-admins as the code for it shows:

    <?php if ( is_multisite() && is_super_admin() ) { ?>
    <tr>
        <th scope="row"><label for="noconfirmation"><?php _e('Skip Confirmation Email') ?></label></th>
        <td><label for="noconfirmation"><input type="checkbox" name="noconfirmation" id="noconfirmation" value="1" <?php checked( $new_user_ignore_pass ); ?> /> <?php _e( 'Add the user without sending them a confirmation email.' ); ?></label></td>
    </tr>
    <?php } ?>
    

    You can disable the sending of the confirmation emails altogether with the following:

    add_filter( 'wpmu_welcome_user_notification', '__return_false');
    

    The other option is create a plugin that makes your own custom add user page.

Comments are closed.