How can I modify woocommerce "login" hyperlink within the "user with this email address already exists" registration error message?
The default that woocommerce units appears to be a relative path to "current url" + "/#", so since I am displaying this error on one other web page apart from the wc login web page i would want that url to be an absolute path.
I attempted utilizing the filter beneath inside my features.php however does not work:
add_action('woocommerce_registration_error_email_exists', 'my_dynamic_error_filter');
perform my_dynamic_error_filter( $html ){
$url = wc_get_page_permalink( 'myaccount' );
$url = add_query_arg( 'redirect_checkout', 1, $url );
$html = str_replace( '<robust>Error:</robust> an account with this eamil handle is already registered.', '<a href="'.$url.'">Login</a>', $html );
return $html;
}