Change password reqts with NO plugin without breaking resetpass link?
Change password reqts with NO plugin without breaking resetpass link?
Change password reqts with NO plugin without breaking resetpass link?
Q1. How can we do this login event? Can we login via API or do we need something different? I’m asking because I’ve seen ways to log in with a cookie. The WP REST API provides no session management functionality. There is no way to login, register, or logout via the REST API. If it … Read more
How to protect my credentials on my clients website
Entire WordPress content disappears
WordPress MU: Cookie error when trying to login on network WP instance
this code on functions.php should work or using this code on a plugin or in a snippet. Just change the ‘yourpage’ to your respective page and the link on the wp_redirect function. add_action( ‘wp_head’, ‘custom_if_user_is_logged’ ); function custom_if_user_is_logged(){ if(is_page(‘yourpage’) && !is_user_logged_in()) { wp_redirect(‘https://your_website.net/wp-admin’); } } also when is a normal page from wordpress its possible … Read more
I think the article’s logout hook is wrong on two or three counts: it needs ?action=logout, similar to the lost password link it needs a generated nonce too it doesn’t respect the $redirect argument. Here’s a new version based on the current wp_logout_url() code: add_filter( ‘logout_url’, ‘my_logout_page’, 10, 2 ); function my_logout_page( $logout_url, $redirect ) … Read more
“user not registered” when trying to login and “There has been a critical error” message on site
Remove login fields from /customer-account page [closed]
You could do this with a low-priority authenticate filter. I’m surprised there aren’t more appropriate hooks in the login process, but I can’t see one. (There is already an example of a filter like this though: wp_authenticate_spam_check.) If the value the filter is given is a user, that means a previous filter has accepted the … Read more