This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Yvette 1 year ago.

Assigned support staff: Yvette.

Author Posts
September 24, 2018 at 5:28 pm #2761452

Bendimered Lotfi

I am trying to: redirect the wp-login.php with the code below:

add_action('login_form_register', 'my_registration_page_redirect');

function my_registration_page_redirect()
{
global $pagenow;
$prev_url = apply_filters('wpml_current_language',NULL);
$new_register_page='/'.$prev_url.'/register';

wp_redirect( home_url($new_register_page));

exit();

}

I expected to see: a redirection pointing to the current language/register

Instead, I got: The redirection goes always to the main language (which is fr/register) no matter what I try.

September 25, 2018 at 7:55 pm #2765158

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello

Are you trying to implement a "Browser language redirection"?

Thanks for the clarification

The topic ‘[Closed] Redirecting wordpress registration page’ is closed to new replies.