Although the readonly attribute can be removed using Chrome/Firebug inspector (making the field editable again), much probably the average user will not know this.
<?php
function wpse50730_script_enqueuer(){
if(current_user_can('subscriber')) {
echo '<script type="text/javascript">
jQuery(document).ready( function($) {
$(".form-table #email").attr("readonly", true);
});
</script>';
}
}
add_action('admin_head-profile.php', 'wpse50730_script_enqueuer');
Related Posts:
- How to create a front end user profile with a friendly permalink
- How to remove Biography from user profile admin page
- How to get a buddypress user profile link and a certain user profile field for the current post author?
- Integrate WordPress and bbpress profiles?
- Remove Personal Options section from Profile
- Removing “Website” Field from the contact info
- How do you update user_email on the front end in WP 3.3?
- Get basic Image Uploader on User Profile Page
- How to disable profile.php for users?
- How to change profile picture in wordpress?
- Where the Nickname is being used in WordPress
- Replace Gravatar with uploaded images?
- How to create a edit profile page for users?
- How do I remove the ‘Show Toolbar’ option?
- Connect Users and Taxonomies
- How to create virtual pages with information from user meta profile fields?
- How to change the link “Edit my profile”?
- How to create user personal pages with information from their meta profile fields?
- Extra User Profile Field Upload File / Image
- remove admin bar show hide option from profile settings
- Drop down list in user profile page
- displaying custom code on a given users profile page
- Can I create front-end editable user profile pages with WordPress? How do I do it?
- Make user profile field required
- Display site admin profile fields in header.php
- How to Get User Profile Info on a Category Page
- Add custom fields to the user profile
- Best way to change profile page
- WordPress User Profile Upload – If page is saved file reset
- The “Profile Picture” section just disappeared from my User Profile
- How to display user’s avatar on their profile page?
- Send mail to user only once when specific check box is selected and updated from profile meta updated by admin
- add custom field in user register form
- Fields in User Profile Page
- WP Use Profile Fields is missing
- user-edit.php profile options on TABS
- ‘profile_update’ hook alternative for WooCommerce user meta data
- Prevent update of custom user profile meta field on the front end after 1st entry
- Using the filters in wordpress theme [closed]
- How display Last modified in profile wordpress [closed]
- action user_new_form param is a string
- Frontend Image Upload
- How can I make the user names of commentors clickable links to the user’s profile from the admin comment screen?
- How do I add a dropdown list of numbers 1 – 1000 as an extra profile field?
- How to position user meta data field
- Custom Profile Field for
- Add and Remove fields in Profile page
- Removing Fields From the Profile Page of Theme My Login Plugin
- How to pull user/author profile data in a plugin?
- Get WordPress author link by ID
- Using xprofile_insert_field
- Show image if author meta (profile fields) exists outside loop
- Add a link back to site on ‘edit profile’ page for users?
- Solving a get_user_meta() problem in Multisite
- How to order custom fields in the user profile (admin area)
- Update a user profile via frontend
- Add user meta after a user has registered and logged In [closed]
- Show global Message in User Profiles with admin only Input field in WordPress Backend
- Remove fields from WordPress profile
- Parsing a shortcode through an author meta textfield
- SImple Example To Update User Info From Front End [duplicate]
- What is the php function for “user’s public profile”
- How $_GET[‘updated’] variable is passed when updating a user?
- Get user edit functions in frontend for site admin
- How do I update user email from frontend input field?
- Gender based user avatar
- How can i add user display name drop down menu in frontend?
- Updating User Profile information removes image
- how to save multiple checkbox in usermeta and get it?
- Replace a specific profile field
- How to change name “Profile”
- Did something change in regards to custom profile fields in WP 4.8.2 (mine have disappeared)?
- Implementing profile page in wordpress
- Require confirmation of current user’s email before updating database and before send_email_change_email
- Creating multiple profiles under one user to assign to particular posts
- Checkbox not showing as checked on UserProfile (even with checked=”checked”)
- How to remove unwanted section in profile page for only users?
- update_user_meta(): invisible data storage
- allowing user to add content, photos without giving access
- Does WP “out-of-the-box” allow user profile photos? [duplicate]
- Hide user fields based off capability
- Multisite – Echo admins profile meta
- Validate user meta and redirect
- use single form to enter multiple profiles
- Update user from external script
- Renaming profile sections
- Display all existing members
- Renaming/translating “your profile” page
- How ‘secure’ are loops?
- Is possible to modify user_login after registration?
- user profile replace first name last name with custom values
- how to add radio field on user meta on function.php?
- get current user password on the profile edit page
- Edit profile fields with TML
- How to create a profile page for users?
- Remove Personal Options section only from subscribers profile
- Information and Videos for Customers in the Backend [closed]
- WP_User_Query not returning users with meta – what am I missing?
- How to save user meta on custom admin page
- How to access User meta data within a plugin