Support » Plugin: Polylang » custom link in current language

  • stefano console

    (@stefanoconsole)



    Hi, I customize the woocommerce login form with a personal registration link with this code “<?php echo wp_registration_url(); ?>” in a href.

    Now, i write this fuction in fuction.php of my theme.

    add_filter( ‘register_url’, ‘my_register_page’ );
    function my_register_page( $register_url ) {
    return home_url( ‘/registrati/’);
    }

    But the link redirect me in italian language page.

    How i can redirect the registration link in the current language page?

    Thanks for help me.

  • The topic ‘custom link in current language’ is closed to new replies.