Philip Kirkbride Philip Kirkbride - 1 year ago 106
PHP Question

Redirect after Login on Wordpress

I'm creating a customized wordpress theme based on an existing site.

I want to use an alternate dashboard which I have created.

How can I have the user directed to '

' after login instead of '
' ?


EDIT: Have a working Plug-in for this but the bounty is still availible for anyone who can find a manual way to do this through functions.php, as it would be more secure then using a 3rd party plug-in.

Answer Source

This should solve your problem. Adapted from an answer found here.

function admin_default_page() {
  return '/new-dashboard-url';

add_filter('login_redirect', 'admin_default_page');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download