lostpassword_redirect filter is not used

I was missing something. Woocommerce accounts are different from normal WordPress accounts. The code that I was looking for was: function woocommerce_new_pass_redirect( $user ) { wp_redirect( get_permalink(woocommerce_get_page_id(‘myaccount’))); exit; } add_action( ‘woocommerce_customer_reset_password’, ‘woocommerce_new_pass_redirect’ ); I found it on stackoverflow.

Change password fields

“Generate password” button, which you say “it is not the usual field”, is the standard since WordPress 4.3. You can click it and a new password is auto generated; if you don’t like it, you can modify it before saving changes and update the user data. So, your question is basically wrong assuming that fields … Read more

Where to store credentials used in a function? [duplicate]

You could store it as variables $account_id = ‘your_account_id’; $password = ‘your password’; someFunction($account_id, $password); Or store it in {$table_prefix}_options table and retrieve it by get_option function $account_id = get_option(‘account_id’); $password = get_option(‘password’); someFunction($account_id, $password); You could save this values, for example from admin panel, by update_option function. Second option is better, because you can … Read more

Password protect a custom template

Post_password_required returns false in two cases: No password required Cookie with password present So, once you have entered the password and logged out, the cookie will still be present and you get access to the content. (When I go to your site, without login or password, I get the password field just as I should)

How to add meta tags on password-protected homepage? [closed]

So from the point of view of your website Facebook is just like any other visitor. Either the content is hidden for everyone or it isn’t for everyone. Even if you’d try to detect Facebook and show them something different this punches a huge hole into your password-protection and makes it pretty much pointless as … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)