Skip to content

Instantly share code, notes, and snippets.

@nestoru
Created May 25, 2020 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nestoru/d383046609f97aec639b4525cb37e41c to your computer and use it in GitHub Desktop.
Save nestoru/d383046609f97aec639b4525cb37e41c to your computer and use it in GitHub Desktop.
Internationalize Divi Tabs Module
public function get_tabs_nav() {
global $et_pb_tab_titles;
global $et_pb_tab_classes;
$tabs = '';
$i = 0;
if ( ! empty( $et_pb_tab_titles ) ) {
foreach ( $et_pb_tab_titles as $tab_title ){
// The below block is necessary to internationalize the tab titles
foreach ($tab_title as $key=>&$value){
$value = esc_html__($value, 'et_builder');
}
// End of tab titles internationalization block
unset($value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment