Thanks, I’m set. We just have a problem recovering your password. I open a recovery page, enter an email. I will receive a recovery link, but after confirmation, I am redirected to a forced login and will not allow me to open a new password. This is a variable address.
I will open the page: https://singulis.net/obnova-hesla/
Here’s the ok, but then I need to enable the following variable in force login: (example)
https://singulis.net/obnova-hesla/?action=rp&key=EbQURjbFERAdnsx7UgN6&login=v****************z
And here’s the problem, I can’t set it up. Can you help me, please?
I have entered:
/**
* Filter Force Login to allow exceptions for specific URLs.
*
* @param array $whitelist An array of URLs. Must be absolute.
* @return array
*/
function my_forcelogin_whitelist( $whitelist ) {
$whitelist[] = home_url( ‘/registrace/’ );
$whitelist[] = home_url( ‘/obnova-hesla/’ );
return $whitelist;
}
add_filter( ‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’ );
-
This reply was modified 5 years, 11 months ago by
singulismisa.
-
This reply was modified 5 years, 11 months ago by
singulismisa.