Support » How-To and Troubleshooting » [Resolved] Change the word "Register" in the admin bar

[Resolved] Change the word "Register" in the admin bar

  • Prometheus Fire


    Trying to get a function that will parse the Register link in the admin bar to change the text. I’ve got it deployed on multisite and I want to clarify how it reads.

    I want it to say something like “Register a new [insert network name] account”

    Can anyone help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Good Guy


    It is in a file called “wp-includes/general-template.php”.

    You are expert in php right? Have a go and if it ain’t broken, break it!!

    Not sure how do you go about using the child theme; perhaps you can tell us here for a record!!

    Prometheus Fire


    Not a php expert but I gave it a shot and it didn’t work. I’m deploying the function as part of a mu-plugin (but that doesn’t really matter, it’ll work in functions.php too for a theme, or as a plugin by itself too – where it goes doesn’t really matter.)

    Anyhow, this is what I have so far and it doesn’t work:

    // Change the default register link to something branded
    function branded_register_link() {
    	echo '<a href="' . site_url('wp-login.php?action=register', 'login') . '">' . __('Register a new network account') . '</a>';
    add_action( 'wp_register', 'branded_register_link',);
    Prometheus Fire


    The function from wp-includes/general-template.php is not what I need to be modifying. Just as a test I changed the text in the original function in the core file and it had no impact on the wpadminbar link. I find out where the admin bar link is created and modify that function. That’s why I wasn’t getting anything response from my code.

    Still need help with this – where does the admin bar get its Register element?

    Prometheus Fire


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Change the word "Register" in the admin bar’ is closed to new replies.