Astra_Ext_White_Label_Markup::theme_gettext( string $text, string $original, string $domain )
White labels the theme using the gettext filter to cover areas that we can’t access like the Customizer.
Description
Parameters
- $text
-
(string) (Required) Translated text.
- $original
-
(string) (Required) Text to translate.
- $domain
-
(string) (Required) Text domain. Unique identifier for retrieving translated strings.
Return
(string)
Source
File: classes/class-astra-ext-white-label-markup.php
public function theme_gettext( $text, $original, $domain ) { if ( 'Astra' == $original ) { $text = self::get_whitelabel_string( 'astra', 'name', false ); } return $text; }
Expand full source code Collapse full source code View on Trac