Astra_Ext_White_Label_Markup::plugin_gettext( string $text, string $original, string $domain )
White labels the plugin using the gettext filter to cover areas that we can’t access.
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 plugin_gettext( $text, $original, $domain ) { if ( 'Astra Pro' == $original ) { $text = self::astra_pro_whitelabel_name(); } return $text; }
Expand full source code Collapse full source code View on Trac