Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
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. |
public static add_config ( string $config_id, array $args = [] ) | ||
$config_id | string | The configuration ID. |
$args | array | The configuration options. |
public static add_section ( string $id, array $args ) | ||
$id | string | The ID for this section. |
$args | array | The section arguments. |
public static array $config | ||
return | array |
public static array $fields | ||
return | array |
public static array $panels | ||
return | array |
public static string $path | ||
return | string |
public static array $sections | ||
return | array |