• Resolved dbvista

    (@dbvista)


    On my multisite blog, everybody’s email address is always their blog username followed by @mycompany.com. So on the Add New User form, /wp-admin/user-new.php, I want to remove the “E-mail (required)” blank from the form, and default the value to [email protected].

    What’s the best way to hook into this page to achieve this? I see that user-new.php has a few apply_filter() calls, but none of them execute when the page first renders.

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter dbvista

    (@dbvista)

    I wound up adding JavaScript to my theme. In functions.php:

    if ( is_admin() ) wp_enqueue_script(...);

    And then a little jquery in the JavaScript file:

    jQuery(document).ready(function($){
        if (location.pathname.match(/\/wp-admin\/user\-new\.php$/) ) {
            ....
        }
    });
Viewing 1 replies (of 1 total)
  • The topic ‘Add New User: Making email address optional/defaulted?’ is closed to new replies.