add_action( 'user_new_form', 'change_label_form' );
function change_label_form() {
echo '<script>
jQuery(document).ready(function($) {
$("label[for=email]").html("Example");
} );
</script>';
}
here is trick worked for me , you can change the label for any filed by using the for tag in the label and you can add action on any form you like, as
add_action( 'edit_user_profile_update', 'change_label_form' );
Here is another trick you can use
add_action('admin_head-user-edit.php', 'setup_user_edit');
function setup_user_edit() {
add_filter('gettext', 'change_profile_labels');
}
function change_profile_labels($input) {
if ('Email' == $input)
return 'Example';
return $input;
}
Related Posts:
- WordPress Form To Email.php and Theme
- Varying Search Result Pages
- Create register form without a plugin
- Search form not finding content in template page
- Workaround AJAX calling without directly calling WordPress backend (Admin dashboard) because it is restricted to the end user (the public)
- How can I allow the Editor Role to change Theme Settings?
- How to Link External jQuery/Javascript files with WordPress
- Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067
- Best practices for a Style/CSS based theme options page?
- How to license my commercial WordPress theme? [closed]
- How to Use WordPress as Static CMS Without Blog Posts
- How do I create my own admin button and theme settings page?
- Editing Links in the Footer of WordPress Themes with Base64 Encrypted Code?
- How to set two different themes on one WordPress? (Desktop vs. Mobile)
- How can I add a set featured image function to a theme that doesn’t already have it built in?
- Jquery in Child Theme
- Changing the visible url path to css & js files
- Display custom_background outside wp_head()
- How to automatically highlight syntax of code in a post?
- Retaining old HTML archives and displaying themes conditionally
- Front End Post Submit Form
- Sending form data via PHPMailer – How to action PHP script from a form
- Theme Activation, Create Database Tables
- Can we create a child theme for a premium child theme built on Genesis framework?
- WordPress ignoring specified template for front page. Why?
- Alternate header image
- How to start learning CSS and theme development?
- How do I make the category template display full posts instead of partial posts?
- Does uninstalling a WordPress theme delete its database values?
- PHP Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) on line 230 [closed]
- Child theme not using parent theme css/styles/formatting?
- Problem after renaming wordpress template file
- 100% width Featured Image Size
- Make it possible to pick a color theme for specific pages
- X-Axis of Site is Messed Up Because it is in Hebrew
- How to create my own sidebar in Twenty Eleven child theme?
- How to find out if page_for_posts is showing (in order to style menu item)
- WP can’t create new directory
- Customizing page content layout
- Updating / Transferring site
- Putting two themes together to create a complete site
- How does WP generate html?
- Remove field in the form : only works for “url”, not for “email”?
- How to dynamically change theme’s slogan from admin?
- Using WordPress Multisite to manage multiple projects?
- What’s a good way to unenqueue all scripts for a single template page?
- Icons not showing [closed]
- Adding Sidebars in WordPress Theme
- Error 404 for JQuery import “jquery-1.10.2.min.map”
- Passing dynamic options from backend to frontend
- Using the same database on another Subdomain
- WP HTML Templates – Any way to get bloginfo() or the path to the theme folder?
- Theme javascript/css 404
- How to add more default colors?
- On a Https site, Css and Js Url are back to http after redirect the site
- Changing URL of scripts, scripts outside theme folder?
- Theme folder doesnt exist
- WordPress activate theme error $pagenow
- Saved emails at dashboard
- Increase content area width in TwentyFourteen [closed]
- How to use only scripts from new theme?
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- Comments not displaying after changing theme
- Theme Translation?
- Two column layout in WordPress?
- Email from my theme’s contact form doesn’t get the reply-to address right
- WordPress Theme Breaking on Migration to Live Site [closed]
- List of categories instead of dropdown menu selector in admin options
- WordPress doesn’t recognise created theme
- Looking for a theme to show unread/updated posts since last visit or like that
- Losing theme customization when switching from a theme to a child
- Problem of not changing the front and bottom of the Woodmart template by activating the really simple ssl pro plugin in WordPress
- Please help me clear my confusions about WordPress
- Email form getting hacked
- Why does an ad page open when I browse my websites’s wp-admin page?
- Get the name WordPress default theme in the core
- What is the correct way to set up a staging server and use github for version control?
- How do I use the default style for widget?
- WordPress fails to embed video URL on specific theme
- Unable to set social icons using Advance Portfolio Theme
- How to add extra custom social icons to page with same style?
- How can I theme or style the lost password page without a plugin?
- The function is deprecated; use mysql_real_escape_string() instead
- Serve resources from a consistent URL GT Metrix
- WordPress loads old style.css, then loads current one
- Full width background slider
- the_content doesn’t return tags
- Change the main width of Twenty Thirteen theme
- Meta title W3C Validation Error with
- Can I add a blog subfolder to my website and use a different theme
- How to modify/ customise NextGen Gallery’s templates? [closed]
- Overwrite template-tags.php in child theme
- How to know which theme are we using in wordpress and change the content as well? [closed]
- Basic clothing showroom [closed]
- Custom WordPress Does Not Display Anything But Background in IE [closed]
- Two types of layout in woocommerce SHOP page [closed]
- How to include a new file in theme
- How to reference or include additional existing variables in the HTML of a 6.0 block theme via Site Editor?
- How to add custom css/js files to a template in wordpress
- How can I add a new Styles option in WordPress 2024 theme?