Hello,
I will update the plugin with this change.
Hi Nicolas,
The latest update – 1.5.4.2 doesn’t include the change.
Please help, thank you!
Regards,
Susan
Hello,
Yes, I had to remove the WPML compatibility that you asked me because it caused a lot of conflict on other users’ sites.
Hi Nicolas,
Do you have a piece of PHP code that I can insert it into the child theme’s functions.php, so that I don’t have to amend your plugin’s file every time when an update takes place?
Thanks.
Regards,
Susan
Replace with this function :
“public function new_login_url( $scheme = null ) {
$url = apply_filters( ‘wps_hide_login_home_url’, home_url( ‘/’, $scheme ) );
if ( get_option( ‘permalink_structure’ ) ) {
return $this->user_trailingslashit( $url . $this->new_login_slug() );
} else {
return $url . ‘?’ . $this->new_login_slug();
}
}”
This will be deployed in the next update.
Hi Nicolas,
Thank you for your kind support, can’t wait for the next update! 🙂
For now, do you mean I should replace the following code in /classes/plugin.php (line 145)
return $this->user_trailingslashit( home_url( '/', $scheme ) . $this->new_login_slug() );
with
public function new_login_url( $scheme = null ) {
$url = apply_filters( ‘wps_hide_login_home_url’, home_url( ‘/’, $scheme ) );
if ( get_option( ‘permalink_structure’ ) ) {
return $this->user_trailingslashit( $url . $this->new_login_slug() );
} else {
return $url . ‘?’ . $this->new_login_slug();
}
}
Kindly advise, thank you!
Regards,
Susan
no all function new_login_url()