WordPress.org

Ready to get started?Download WordPress

Ideas

Add class or id to edit-user.php user profile form elements

  1. theApe
    Member

    What I would like to see is the different elements in the users profile page in the administration have their own ids, so the page can be customised to a higher degree without any core hacks.

    For example...

    <h3><?php _e('Name') ?></h3>
    
    <table class="form-table">

    Replaced by

    <h3 class="name-user-edit"><?php _e('Name') ?></h3>
    
    <table class="form-table name-user-edit">

    Or

    <tr>
    	<th><label for="nickname"><?php _e('Nickname'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    	<td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr($profileuser->nickname) ?>" class="regular-text" /></td>
    </tr>

    Replaced by

    <tr id="nickname-edit-user">
    	<th><label for="nickname"><?php _e('Nickname'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    	<td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr($profileuser->nickname) ?>" class="regular-text" /></td>
    </tr>

    ....and so on.

    Posted: 3 years ago #
  2. theApe
    Member

    Alternative to that I would like to see a child-core, like a child-theme. A way to replace core file without hacking them. Maybe the child core thing should be a new thread?

    Posted: 3 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    1 Vote
  • Status

    This is plugin territory