PHP Класс Kirki_l10n, kirki

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$textdomain string The plugin textdomain

Открытые методы

Метод Описание
__construct ( ) The class constructor.
get_strings ( string $config_id = 'global' ) : array Shortcut method to get the translation strings
load_textdomain ( ) Load the plugin textdomain

Защищенные методы

Метод Описание
get_path ( ) : string Gets the path to a translation file.
get_paths ( ) : array Returns an array of paths where translation files may be located.

Описание методов

__construct() публичный Метод

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

get_path() защищенный Метод

Gets the path to a translation file.
protected get_path ( ) : string
Результат string Absolute path to the translation file.

get_paths() защищенный Метод

Returns an array of paths where translation files may be located.
protected get_paths ( ) : array
Результат array

get_strings() публичный статический Метод

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.
Результат array

load_textdomain() публичный Метод

Load the plugin textdomain
public load_textdomain ( )

Описание свойств

$textdomain защищенное свойство

The plugin textdomain
protected string $textdomain
Результат string