728x90
This is a useful trick If you’re developing a website for client on WordPress and want to manually redirect users after logout of your WordPress website. By default, WordPress will redirect them to the login page of your website, but we can easily change it by adding following snippet to current theme’s functions.php file:
Above snippet will redirect your users to the homepage of your website. You can also define custom URL or external URL by adding following snippet:
'WEB > WP(WordPress)' 카테고리의 다른 글
How to quickly increase the All-in-One WP Migration plugin upload limit (0) | 2019.04.27 |
---|---|
WordPress add link to Featured Image (0) | 2019.03.05 |
How to override the woocommerce.css in the parent theme? (0) | 2019.03.05 |
Does Wordpress Provide Native Datepicker in Admin? (0) | 2018.06.04 |
How to Add a Login/Logout Link to Your WordPress Menu (0) | 2018.05.26 |