How do I redirect users back to my blog's main page after they login?
Answer / Parul Jaiswal
To redirect users back to your blog's main page after they log in, you can add the following code to your theme's functions.php file: nn`function redirect_after_login() { wp_redirect(home_url()); exit; } add_action('wp_login', 'redirect_after_login');`
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a category tag?
How do I change my theme in wordpress?
List the features of WordPress?
How many default tables are in wordpress? Explain
What is difference between static and dynamic websites?
How much is wordpress monthly?
How do I redirect users back to my blog's main page after they login?
How do I make my wordpress site public?
What is the difference between pages and posts in wordpress?
Why wordpress is the best cms?
What are the steps you can take if your WordPress file is hacked?
Can I build a website without a host?