weglot_proxify_urls
This filter allow you to modify the list of url you want to proxify.
The filter receives a list of absolute URLs (empty by default) and must return it. On translated pages, each listed URL is replaced in the HTML by its Weglot proxy URL, so the resource it points to is served translated.
add_filter( 'weglot_proxify_urls', 'custom_weglot_proxify_urls' );
function custom_weglot_proxify_urls( $urls ) {
$urls[] = 'https://widget.example.com/embed.html';
return $urls;
}Last updated