Try this instead:
function custom_tml_action_url( $url, $action, $scheme, network ) {
if ( ‘register’ == $action ) {
$url = 'https://salesreps.microgendx.com/new-rep-registration/';
}
return $url;
}
add_filter( ‘tml_get_action_url’, ‘custom_tml_action_url’, 10, 4 );
Looks like you are right. We will need to refactor when/how that link is filtered. Meanwhile, you should be able to receive the same result by simply changing the slug in TML settings to the slug of the page you want to use.
I would, but since updating I don’t have a TML Settings menu item in my WP admin menu anymore…
It would actually be labeled “Theme My Login” now…
Well, either way, neither one is listed in the main menu or under Tools or Settings. There is also no link to settings on the plugin page.
It’s not lost on me how quickly you are replying by the way. I greatly appreciate that 😉
Nope. Here is what I have: https://snag.gy/G1BK7e.jpg
It’s a multisite if that makes a difference.
Actually, it does. You’ll now find TML settings in your network administration.
Ah, that’s the problem. I see it in network settings now. However, I don’t really need to change those pages network wide. Is one of your extensions available able to handle that?
Unfortunately, no. TML is now a network-wide plugin, as it always should have been, considering that user registration is global in multisite.
I suppose that’s true. Just depends on your use I suppose. We collect different information for each different site. So there are different registration forms for each site. Hence the need for a different registration link on the login form and a different password reset link as well. It would also help with continuity if for instance someone was registering for one site, but was redirected to another that was branded a bit differently, it would be a bit confusing for the user.
I guess I can just hide the registration link for now until the action is updated. Thanks again for the quick response.
Here’s another approach:
function modify_tml_form_links( $links, $form ) {
if ( isset( $links['register'] ) ) {
$links['register']['url'] = 'YOUR NEW URL';
}
return $links;
}
add_filter( 'tml_get_form_links', 'modify_tml_form_links', 10, 2 );