• Hi all,
    i have searched all over the forum and codex but i cant find a solution for this
    so i hope the nice ppl here could help me out on this, here is goes:

    I have Meta widget on my sidebar, under it i have the Register link, now i need to change the word Register to Signup i have look under the sidebar.php, wp-login.php and the locale.php but i cant seem to find where to change that word.

    any help will be appreciated,
    thank you in advanced

Viewing 4 replies - 1 through 4 (of 4 total)
  • The widget uses the wp_register function that is in wp-includes/general-template.php but you might try this as a plugin. Save it as changeregister.php in your wp-content/plugins folder:

    <?php
    /*
    Plugin Name: ChangeRegister
    Plugin URI: https://www.ads-software.com/support/topic/23058
    Description: change the text Register to Signup for the wp_register function
    Version: 1.0
    Author: MichaelH
    Author URI: https://codex.www.ads-software.com/User:MichaelH
    
    */
    
    add_filter('register', 'change_register');
    function change_register($link) {
    $link = str_replace("Register", "Signup", $link);
    return $link;
    }
    ?>

    I found it to be much easier to go into the general-template.php and to look for ‘register’ and “site admin”. Then I replaced ‘register’ with ‘signup’ and ‘site admin’ with ‘your profile’. likewise that piece of code also allowed me to redirect users to their profile instead of redirecting them to the dashboard.

    Alex

    (@burntheweb)

    changing the core files wont upgrade and all chnages will be lost!

    I personally did as Michael suggested to change my texts to my “Custom Meta” Plugin with this code

    <?php
    /*
    Plugin Name: ChangeRegister
    Plugin URI: https://www.ads-software.com/support/topic/23058
    Description: change the text Register to Signup for the wp_register function
    Version: 1.0
    Author: MichaelH
    Author URI: https://codex.www.ads-software.com/User:MichaelH
    
    */
    
    add_filter('register', 'change_register');
    function change_register($link) {
    $link = str_replace("Register", "Sign up", $link);
    return $link;
    }
    add_filter('register', 'change_admin');
    function change_admin($link) {
    $link = str_replace("Site Admin", "Your Account", $link);
    return $link;
    }
    ?>
    Alex

    (@burntheweb)

    BTW, this plugin shouldbe added to the list, I’m sure LOTS of people would love to get a hand on it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing Meta widget Register to Signup’ is closed to new replies.