This code displays a ‘Register’ link; I want to redirect this link to “www.myDomain.com/register/” how can I change this?
<?php
if ( get_option( 'users_can_register' ) ) :
$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );``/*** Filter the registration URL below the login form.
** @since 1.5.2** @param string $registration_url Registration URL.
*/echo ' | ' . apply_filters( 'register', $registration_url );endif;?></p>
Use the register_url filter to modify the URL returned by wp_registration_url.
Sample code (put it in your plugin or theme/functions.php file):
Check this:
Not very elegant solution, but it should work.
I think you would have to edit the general-template.php. The function would be
if you changed it to
it should change it where ever that wp_registration_url is referenced.