Support » Plugin: WPS Hide Login » Plugin Update Request for WPML Compatibility

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author NicolasKulka

    (@nicolaskulka)

    Hello,

    I will update the plugin with this change.

    Plugin Author NicolasKulka

    (@nicolaskulka)

    Version 1.5.4

    Hi Nicolas,

    The latest update – 1.5.4.2 doesn’t include the change.
    Please help, thank you!

    Regards,
    Susan

    Plugin Author NicolasKulka

    (@nicolaskulka)

    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

    Plugin Author NicolasKulka

    (@nicolaskulka)

    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

    Plugin Author NicolasKulka

    (@nicolaskulka)

    no all function new_login_url()

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.