For the complete documentation index, see llms.txt. This page is also available as Markdown.

weglot_json_treat_page

This filter allow you to modifiy the translated content when this one is a json.

The filter receives the translated JSON response (a string) and must return it.

add_filter( 'weglot_json_treat_page', 'custom_weglot_json_treat_page' );
function custom_weglot_json_treat_page( $json ) {
    // Edit the translated JSON here.
    return $json;
}

Last updated