Support » Plugin: Theme My Login » Login redirection with WPML

  • Hi,

    My name is David from the WPML Compatibility team. Iā€™m writing to you about helping to resolve an issue between WPML and Theme My Login.

    Your plugin is using a custom SQL query to get the id of the login page. You are expecting only 1 result, but with WPML you get back as many results as languages are enabled.

    The result is that when you try to access the dashboard, you get redirected to a login page in a random language.

    (reported in https://wpml.org/forums/topic/theme-my-login-and-wpml-wrong-login-page/)

    We found a solution by using your tml_page_id filter to translate the id to the currently selected language.

    add_filter( 'tml_page_id', 'tml_translate_page_id' );
    function tml_translate_page_id( $id ) {
    	return apply_filters( 'wpml_object_id', $id, 'page', true );
    }

    Please let me know if you can consider including that fix in Theme My Login.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Login redirection with WPML’ is closed to new replies.