Свойство | Тип | Описание | |
---|---|---|---|
$type | string | The control type. |
Метод | Описание | |
---|---|---|
__construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) | Constructor. | |
customize_sanitize ( string $value ) : array | Unserialize the setting before saving on DB. | |
enqueue ( ) | Enqueue control related scripts/styles. | |
to_json ( ) | Refresh the parameters passed to the JavaScript via JSON. |
Метод | Описание | |
---|---|---|
content_template ( ) | An Underscore (JS) template for this control's content (but not its container). |
public __construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) | ||
$manager | WP_Customize_Manager | Customizer bootstrap instance. |
$id | string | Control ID. |
$args | array | {@see \WP_Customize_Control::__construct}. |
protected content_template ( ) |
public customize_sanitize ( string $value ) : array | ||
$value | string | Serialized settings. |
Результат | array |
public to_json ( ) |