Ready to get started?Download WordPress


[resolved] How do I change the site URL but not the admin URL? (3 posts)

  1. Ben Overmyer
    Posted 3 months ago #

    I'm looking to write a plugin that allows you to change the Site Link displayed in the admin screen to a different URL than the WordPress one.

    Some context: I have a completely separate UI serving the blog pages instead of WordPress, and want to let bloggers be able to click on the Site Link in the WordPress admin UI to go to that separate UI.

  2. bcworkz
    Posted 3 months ago #

    What site link are you referring to? The "Visit Site" link under the blog name in the admin Toolbar? You can add and remove Toolbar menu items with ease. See Class Reference/WP Admin Bar. There are many examples of adding menu items in wp-includes/admin-bar.php.

    Even if that is not what you meant, the Toolbar may offer a viable alternative.

  3. Ben Overmyer
    Posted 3 months ago #

    That lets me work around the problem nicely. Thanks!


You must log in to post.

About this Topic