Created
May 25, 2020 14:57
-
-
Save nestoru/d383046609f97aec639b4525cb37e41c to your computer and use it in GitHub Desktop.
Internationalize Divi Tabs Module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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