Forums

Changing Meta widget Register to Signup (5 posts)

  1. nkraf
    Member
    Posted 3 years ago #

    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

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    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: http://wordpress.org/support/topic/23058
    Description: change the text Register to Signup for the wp_register function
    Version: 1.0
    Author: MichaelH
    Author URI: http://codex.wordpress.org/User:MichaelH
    
    */
    
    add_filter('register', 'change_register');
    function change_register($link) {
    $link = str_replace("Register", "Signup", $link);
    return $link;
    }
    ?>
  3. ModP
    Member
    Posted 3 years ago #

    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.

  4. burntheweb
    Member
    Posted 2 years ago #

    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: http://wordpress.org/support/topic/23058
    Description: change the text Register to Signup for the wp_register function
    Version: 1.0
    Author: MichaelH
    Author URI: http://codex.wordpress.org/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;
    }
    ?>
  5. burntheweb
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic