| Current Path : /home/ereika83/public_html/wp-content/plugins/sfwd-lms/src/Core/Modules/Customizer/DTO/ |
| Current File : /home/ereika83/public_html/wp-content/plugins/sfwd-lms/src/Core/Modules/Customizer/DTO/Panel.php |
<?php
/**
* Customizer Panel Item.
*
* @since 4.15.0
*
* @package LearnDash\Core
*/
namespace LearnDash\Core\Modules\Customizer\DTO;
use Learndash_DTO;
/**
* Customizer Panel Item.
*
* @since 4.15.0
*/
class Panel extends Learndash_DTO {
/**
* Unique identifier. Default empty string.
*
* @since 4.15.0
*
* @var string
*/
public string $id = '';
/**
* Priority of the panel, defining the display order of panels and sections. 160 is the default priority used by WordPress when creating a panel.
*
* @since 4.15.0
*
* @var int
*/
public int $priority = 160;
/**
* Capability required for the panel. Default 'edit_theme_options'.
*
* @since 4.15.0
*
* @var string
*/
public string $capability = 'edit_theme_options';
/**
* Theme features required to support the panel. Default empty array.
*
* @since 4.15.0
*
* @var string[]
*/
public array $theme_supports = [];
/**
* Title of the panel to show in UI. Default empty string.
*
* @since 4.15.0
*
* @var string
*/
public string $title = '';
/**
* Description to show in the UI. Default empty string.
*
* @since 4.15.0
*
* @var string
*/
public string $description = '';
/**
* Type of this panel. Default 'default'.
*
* @since 4.15.0
*
* @var string
*/
public string $type = 'default';
/**
* Default callback used when invoking WP_Customize_Panel::active()
*
* @since 4.15.0
*
* @see WP_Customize_Section::active()
*
* @var callable Callback is called with one argument, the instance of WP_Customize_Section, and returns bool to indicate whether the section is active (such as it relates to the URL currently being previewed).
*/
public $active_callback;
/**
* Properties are being cast to the specified type on construction according to the $cast property.
* Key is a property name, value is a PHP type which will be passed into "settype".
*
* @since 4.15.0
*
* @var array<string, string>
*/
protected $cast = [
'id' => 'string',
'priority' => 'int',
'capability' => 'string',
'theme_supports' => 'array',
'title' => 'string',
'description' => 'string',
'type' => 'string',
];
}