Support » Fixing WordPress » edit_user_profile hook on "Add User" screen

  • I’m attempting to add some fields to the user add/edit screens in the admin, I’ve used the edit_user_profile and show_user_profile hooks to successfully add my fields to the edit screen, however, those same fields do not show up on the Add User screen.

    How do I add fields to the “Add User” screen?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • I need the same result.
    plz let me know if you got something.
    Thx 🙂

    I was having the same query.
    Its not the proper way, but for temporary i found one way,
    Craete your new hook and call that hook in user-new.php.
    write these code in your theme’s functions.php

    add_action( ‘user_registration’, ‘my_show_extra_profile_fields’ );

    function my_show_extra_profile_fields( $user ) { ?>

    <h3>Extra profile information</h3>
    // your code

    <?php } ?>`

    add below code to user-new.php file

    <?php do_action(user_registration);?>

    I’m looking for this exact thing. I’ve successfully added fields to the user via the edit_user_profile and show_user_profile hooks.

    How can you also add fields to the Add User screen without editing core? It’d be nice if there was a hook for that, no? http://core.trac.wordpress.org/browser/branches/3.3/wp-admin/user-new.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘edit_user_profile hook on "Add User" screen’ is closed to new replies.