Property | Type | Description | |
---|---|---|---|
$type | string | The control type. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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. |
return | array |
public to_json ( ) |