PHP 클래스 Kirki_l10n, kirki

파일 보기 프로젝트 열기: aristath/kirki 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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