Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to change the name and menu_name of the profile menu in the default menu without altering the core files.

share|improve this question
    
could you clarify- do you want to change Profile in the admin menu / on the admin page? –  Milo Jun 12 '11 at 0:04
    
@Milo that is correct, When authors log in, instead of seeing Profile/Your Profile, I want to change it to Account/Your Account. This would appear to be a subtle difference but I'm using a custom post type "Profile" to mimic the profile function on the old site, and this may cause some confusion. –  Chuck Jun 12 '11 at 2:22

1 Answer 1

up vote 1 down vote accepted

you could filter gettext to change it. Note that this will change every translatable instance of "Profile".

function change_admin_profile_to_account( $thename ){
    $thename = str_replace( 'Profile', 'Account', $thename );
    return $thename;
}
add_filter( 'gettext', 'change_admin_profile_to_account' );
share|improve this answer
    
Perfect, Thank You –  Chuck Jun 12 '11 at 17:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.