weglot_html_treat_page
This filter allow you to modifiy the translated content when this one is html.
The filter receives the translated HTML page (a string) and must return it. It also runs on XML responses, before weglot_xml_treat_page.
add_filter( 'weglot_html_treat_page', 'custom_weglot_html_treat_page' );
function custom_weglot_html_treat_page( $html ) {
// Edit the translated HTML here.
return $html;
}Last updated