Redirect after Login on WordPress

后端 未结 13 3036
我寻月下人不归
我寻月下人不归 2020-12-04 11:26

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 dire

13条回答
  •  自闭症患者
    2020-12-04 12:10

    The accepted answer is clearly not a good answer! It may solve your problem for a while, but what will happen next time you update your WordPress installation? Your core files may get overridden and you will loose all your modifications.

    As already stated by others (Dan and Travis answers), the correct answer is to use the login_redirect filter.

提交回复
热议问题