Proxify Url
Since the version 4.2 of Weglot plugin, you have a filter to proxify an url
Since version 4.2, a filter lets you route ("proxify") a resource URL through Weglot. A proxified URL is rewritten to this form:
proxy.weglot.com/API_KEY/LANGUAGE_FROM/LANGUAGE_TO/my.ressource.io
To proxify one or more URLs, use the weglot_proxify_urls filter:
// Add this using the "Code Snippets" plugin or directly in functions.php
add_filter( 'weglot_proxify_urls', 'proxify_callback' );
function proxify_callback( $urls_to_proxify ) {
$urls_to_proxify[] = 'https://my.ressource.io/';
return $urls_to_proxify;
}You can add several URLs to the array.
Last updated