• Resolved Kresimir Pendic

    (@gorostas)


    Hi,

    I need to add correct url’s inside ‘My Sites’ dropdown for every site .. to be just like in this gif : (look at lower right part of video there you can see that it pulls correct random strings and not defauld wp-admin that it does by default and goes to 404)

    [video src="https://i.imgur.com/k0IPG0x.mp4" /]

    I’ve made this with this peace of code:

    add_filter( 'admin_url', function( $url, $path, $blog_id ){
        return str_replace( 'wp-admin', get_blog_option( $blog_id, 'whl_page', 'login' ) , $url ) ;
    }, 10, 3 ); 
    

    but the issue is that this code mess up every post in admin where there is “Edit Post” in post grid..

    Do you have any idea how to get this fixed?
    Thanks, Kreso

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Get all sites in multisite it’s Dashboard url’ is closed to new replies.