Skip to content

Instantly share code, notes, and snippets.

@alandbh
Created February 23, 2016 18:36
Show Gist options
  • Save alandbh/ae400f55d1c2b9560cb9 to your computer and use it in GitHub Desktop.
Save alandbh/ae400f55d1c2b9560cb9 to your computer and use it in GitHub Desktop.
Altera o label do campo de Nome de usuário
/* ----------------
Altera o label do campo de Nome de usuário para matrícula
Alan
----------------- */
add_action('admin_head-user-new.php', 'setup_user_edit');
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 ('Nome de usuário' == $input)
return 'Matrícula ou login';
return $input;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment