4.1.6 release redirect rule

Afternoon all,

I wanted to comment on the 4.1.6 release around the redirection rule but the post is closed and so here I am.

Is the rule to not redirect to MainWP dashboard or to redirect to it?

I like logging in and going straight to the overview page and so if the rule is to stay at wp-admin can this be overridden?


Hi Chris,

Rule was updated so it doesn’t force redirection to MainWP plugin after login.

You can use this code snippet:

function admin_default_page() {
  return '/wp-admin/admin.php?page=mainwp_tab';

add_filter('login_redirect', 'admin_default_page');

in the PHP Section of the Custom Dashboard extension to set custom redirection rule. After logging in, you will be redirected right to the MainWP Overview page.


Perfect thanks Bogdan much appreciated

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.