edit_user_profile hook on "Add User" screen (4 posts)

  1. joncarlson
    Posted 4 years ago #

    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

  2. Mr.NoComment
    Posted 4 years ago #

    I need the same result.
    plz let me know if you got something.
    Thx :)

  3. Heer716
    Posted 4 years ago #

    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);?>

  4. circlecube
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic