PHP Class Kirki_l10n, kirki

Afficher le fichier Open project: aristath/kirki Class Usage Examples

Protected Properties

Свойство Type Description
$textdomain string The plugin textdomain

Méthodes publiques

Méthode Description
__construct ( ) The class constructor.
get_strings ( string $config_id = 'global' ) : array Shortcut method to get the translation strings
load_textdomain ( ) Load the plugin textdomain

Méthodes protégées

Méthode Description
get_path ( ) : string Gets the path to a translation file.
get_paths ( ) : array Returns an array of paths where translation files may be located.

Method Details

__construct() public méthode

Adds actions & filters to handle the rest of the methods.
public __construct ( )

get_path() protected méthode

Gets the path to a translation file.
protected get_path ( ) : string
Résultat string Absolute path to the translation file.

get_paths() protected méthode

Returns an array of paths where translation files may be located.
protected get_paths ( ) : array
Résultat array

get_strings() public static méthode

Shortcut method to get the translation strings
public static get_strings ( string $config_id = 'global' ) : array
$config_id string The config ID. See Kirki_Config.
Résultat array

load_textdomain() public méthode

Load the plugin textdomain
public load_textdomain ( )

Property Details

$textdomain protected_oe property

The plugin textdomain
protected string $textdomain
Résultat string