PHP Class Kirki_l10n, kirki

Datei anzeigen Open project: aristath/kirki Class Usage Examples

Protected Properties

Property Type Description
$textdomain string The plugin textdomain

Public Methods

Method 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

Protected Methods

Method 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 method

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

get_path() protected method

Gets the path to a translation file.
protected get_path ( ) : string
return string Absolute path to the translation file.

get_paths() protected method

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

get_strings() public static method

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.
return array

load_textdomain() public method

Load the plugin textdomain
public load_textdomain ( )

Property Details

$textdomain protected_oe property

The plugin textdomain
protected string $textdomain
return string