Created
May 25, 2020 15:00
-
-
Save nestoru/8b3d76becfb9adb473c6843fb09820e3 to your computer and use it in GitHub Desktop.
Internationalize Divi Blurb 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
... | |
if ( '' !== $title ) { | |
$title = sprintf( | |
'<%1$s class="et_pb_module_header">%2$s</%1$s>', | |
et_pb_process_header_level( $header_level, 'h4' ), | |
et_core_esc_previously( $title ) | |
); | |
// starts blurb i18n patch | |
$plain_source_title = strip_tags( $title ); | |
$plain_target_title = esc_html__($plain_source_title, 'et_builder'); | |
$title = str_replace ($plain_source_title, $plain_target_title, $title); | |
// ends blurb i18n patch | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment