Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do I redirect users back to my blog's main page after they login?



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

Post New Answer

More WordPress Interview Questions

What is a category tag?

1 Answers  


How do I change my theme in wordpress?

1 Answers  


List the features of WordPress?

1 Answers  


How many default tables are in wordpress? Explain

1 Answers  


What is difference between static and dynamic websites?

1 Answers  


How much is wordpress monthly?

1 Answers  


How do I redirect users back to my blog's main page after they login?

1 Answers  


How do I make my wordpress site public?

1 Answers  


What is the difference between pages and posts in wordpress?

1 Answers  


Why wordpress is the best cms?

1 Answers  


What are the steps you can take if your WordPress file is hacked?

1 Answers  


Can I build a website without a host?

1 Answers  


Categories