On WordPress multisite I am using the “redirect-multisite-user-to-their-own-site” plugin for users who login from the frontend to be redirected to their own specific blog. However, this plugin only redirects to the user’s blog’s homepage (e.g. mulstisite.com/users-site), rather than the dashboard (e.g. mulstisite.com/users-site/wp-admin). I want the user to be redirected to their dashboard.
In the plugin’s code (see below, included in full), they have
wp_redirect($user_target_site->siteurl);. I don’t know PHP well yet and need it to somehow go to
/wp-admin. How can I accomplish this? I am happy to edit the plugin and create my own plugin to prevent it being overridden by plugin updates.
Read more here: How can I add a slug to siteurl in WordPress?