Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save guilhermealveslopes/ea252f563bb1338226998b6247aa53c2 to your computer and use it in GitHub Desktop.
Save guilhermealveslopes/ea252f563bb1338226998b6247aa53c2 to your computer and use it in GitHub Desktop.
Substitui textos do site.
function traduz_texto_wp( $translated ) {
$text = array(
'Exemplo' => 'Resultado',
'Exemplo' => 'Resultado',
'Exemplo' => 'Resultado',
);
$translated = str_ireplace( array_keys($text), $text, $translated );
return $translated;
}
add_filter( 'gettext', 'traduz_texto_wp', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment