weglot_url_object
add_filter( 'weglot_url_object', 'custom_weglot_url_object' );
function custom_weglot_url_object( $weglot_url ) {
return $weglot_url;
}Advanced. Lets you replace the Weglot\Util\Url object Weglot uses for the current request.
add_filter( 'weglot_url_object', 'custom_weglot_url_object' );
function custom_weglot_url_object( $weglot_url ) {
return $weglot_url;
}