Forums

Displaying "Register" vs "Site Admin" using wp_register (2 posts)

  1. scottsemple
    Member
    Posted 2 years ago #

    Is there a way to change the display text and link that is displayed when users are logged in? Rather than "Register" changing to "Site Admin" when users are logged in, I need it to stay as Register so that access to the Dashboard is not an option.

    Is there a way to remove the "Site Admin" link? (Even just continuing to display "Register" would be better in this case.

  2. Steve Delve
    Member
    Posted 2 years ago #

    You can change the link in "general-template.php"

    Look for this section and change the link text there (for me it was line 240):

    /**
    * Display the Registration or Admin link.
    *
    * Display a link which allows the user to navigate to the registration page if
    * not logged in and registration is enabled or to the dashboard if logged in.
    *
    * @since 1.5.0
    * @uses apply_filters() Calls 'register' hook on register / admin link content.
    *
    * @param string $before Text to output before the link (defaults to

  3. ).
    * @param string $after Text to output after the link (defaults to
  4. ).
    */

    ......
    $link = $before . '' . __('Site Admin') . ''
    ......

    this is probably not the best way to do it, but it worked for me:)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags