PHP Класс Kirki, kirki

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

Открытые свойства

Свойство Тип Описание
$config array An array containing all configurations.
$fields array An array containing all fields.
$panels array An array containing all panels.
$path string Absolute path to the Kirki folder.
$sections array An array containing all sections.
$url string URL to the Kirki folder.

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

Метод Описание
add_config ( string $config_id, array $args = [] ) Sets the configuration options.
add_field ( string $config_id, array $args ) Create a new field.
add_panel ( string $id = '', array $args = [] ) Create a new panel.
add_section ( string $id, array $args ) Create a new section.
get_option ( string $config_id = '', string $field_id = '' ) : mixed Get the value of an option from the db.

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

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

Sets the configuration options.
public static add_config ( string $config_id, array $args = [] )
$config_id string The configuration ID.
$args array The configuration options.

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

Create a new field.
public static add_field ( string $config_id, array $args )
$config_id string The configuration ID for this field.
$args array The field arguments.

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

Create a new panel.
public static add_panel ( string $id = '', array $args = [] )
$id string The ID for this panel.
$args array The panel arguments.

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

Create a new section.
public static add_section ( string $id, array $args )
$id string The ID for this section.
$args array The section arguments.

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

Get the value of an option from the db.
public static get_option ( string $config_id = '', string $field_id = '' ) : mixed
$config_id string The ID of the configuration corresponding to this field.
$field_id string The field_id (defined as 'settings' in the field arguments).
Результат mixed The saved value of the field.

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

$config публичное статическое свойство

An array containing all configurations.
public static array $config
Результат array

$fields публичное статическое свойство

An array containing all fields.
public static array $fields
Результат array

$panels публичное статическое свойство

An array containing all panels.
public static array $panels
Результат array

$path публичное статическое свойство

Absolute path to the Kirki folder.
public static string $path
Результат string

$sections публичное статическое свойство

An array containing all sections.
public static array $sections
Результат array

$url публичное статическое свойство

URL to the Kirki folder.
public static string $url
Результат string