Index page and random posts needs a forced refresh in order to show new content
Index page and random posts needs a forced refresh in order to show new content
Index page and random posts needs a forced refresh in order to show new content
Login form doesn’t log in
Use WordPress Login for a non-wordpress site
is_user_logged_in() not working in Firefox
Login/Register redirect user with message
When you want to protected a content, redirect non-logged users is better done as soon as possible. So, between the 2 hooks in OP ‘template_redirect’ is better. But you can also use an even earlier hook, to improve security and performance (by skipping unwanted queries). ‘wp_loaded’ for this sort of things is probably the best … Read more
WordPress PHP Conflicting User Sessions
Lost password empty field error redirect to custom login
Login with serialized password
Ajax login without redirect/reload