Title: Plugin Update Request for WPML Compatibility
Last modified: August 16, 2019

---

# Plugin Update Request for WPML Compatibility

 *  Resolved [susansiow](https://wordpress.org/support/users/susansiow/)
 * (@susansiow)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/plugin-update-request-for-wpml-compatibility/)
 * Dear WPS Hide Login,
 * Greetings.
 * Can the following code in /classes/plugin.php (line 145)
 * `return $this->user_trailingslashit( home_url( '/', $scheme ) . $this->new_login_slug());`
 * be replaced with the following to achieve the compatibility with WPML plugin?
 * `return $this->user_trailingslashit( site_url( '/', $scheme ) . $this->new_login_slug());`
 * source: [https://wpml.org/forums/topic/wps-hide-login-secondary-language-logout-error/page/2/](https://wpml.org/forums/topic/wps-hide-login-secondary-language-logout-error/page/2/)
 * Kindly advise, thank you!
 * Regards,
    Susan

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/plugin-update-request-for-wpml-compatibility/#post-11854221)
 * Hello,
 * I will update the plugin with this change.
 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/plugin-update-request-for-wpml-compatibility/#post-11854250)
 * Version 1.5.4
 *  Thread Starter [susansiow](https://wordpress.org/support/users/susansiow/)
 * (@susansiow)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-update-request-for-wpml-compatibility/#post-11924382)
 * Hi Nicolas,
 * The latest update – 1.5.4.2 doesn’t include the change.
    Please help, thank you!
 * Regards,
    Susan
 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-update-request-for-wpml-compatibility/#post-11925452)
 * Hello,
    Yes, I had to remove the WPML compatibility that you asked me because
   it caused a lot of conflict on other users’ sites.
 *  Thread Starter [susansiow](https://wordpress.org/support/users/susansiow/)
 * (@susansiow)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-update-request-for-wpml-compatibility/#post-11927608)
 * 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
 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-update-request-for-wpml-compatibility/#post-11937008)
 * 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.
 *  Thread Starter [susansiow](https://wordpress.org/support/users/susansiow/)
 * (@susansiow)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-update-request-for-wpml-compatibility/#post-11938601)
 * 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
 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-update-request-for-wpml-compatibility/#post-11939442)
 * no all function new_login_url()

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Plugin Update Request for WPML Compatibility’ is closed to new replies.

 * ![](https://ps.w.org/wps-hide-login/assets/icon-256x256.png?rev=1820667)
 * [WPS Hide Login](https://wordpress.org/plugins/wps-hide-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wps-hide-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wps-hide-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wps-hide-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wps-hide-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wps-hide-login/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-update-request-for-wpml-compatibility/#post-11939442)
 * Status: resolved