This snippet of code should be integrated at the plugin so a super admin can reach the login pages at every site on the multisite without get any 404 when clicking the dashboard link at the site listing page of a multisite
function modificar_enlace_dashboard( $actions, $blog_id ) {
$custom_login_slug = ‘YOUR-CUSTOM-LOGIN-SLUG’;
$dashboard_url = get_site_url( $blog_id ) . ‘/’ . $custom_login_slug . ‘/’;
if ( isset( $actions['backend'] ) ) {
$actions['backend'] = '<a href="' . esc_url( $dashboard_url ) . '">' . __( 'Dashboard' ) . '</a>';
}
return $actions;
}
add_filter( ‘manage_sites_action_links’, ‘modificar_enlace_dashboard’, 10, 2 );
-
This reply was modified 5 months, 3 weeks ago by danidorad0.
-
This reply was modified 5 months, 3 weeks ago by danidorad0.
-
This reply was modified 5 months, 3 weeks ago by danidorad0.