Changeset 47387
- Timestamp:
- 02/27/2020 08:34:49 PM (5 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r47386 r47387 3802 3802 * @since 4.5.0 Return added WP_Customize_Panel instance. 3803 3803 * 3804 * @param WP_Customize_Panel|string $id Customize Panel object, or Panel ID. 3805 * @param array $args { 3806 * Optional. Array of properties for the new Panel object. Default empty array. 3807 * 3808 * @type int $priority Priority of the panel, defining the display order 3809 * of panels and sections. Default 160. 3810 * @type string $capability Capability required for the panel. 3811 * Default `edit_theme_options`. 3812 * @type string|string[] $theme_supports Theme features required to support the panel. 3813 * @type string $title Title of the panel to show in UI. 3814 * @type string $description Description to show in the UI. 3815 * @type string $type Type of the panel. 3816 * @type callable $active_callback Active callback. 3817 * } 3804 * @see WP_Customize_Panel::__construct() 3805 * 3806 * @param WP_Customize_Panel|string $id Customize Panel object, or ID. 3807 * @param array $args Optional. Array of properties for the new Panel object. 3808 * See WP_Customize_Panel::__construct() for information 3809 * on accepted arguments. Default empty array. 3818 3810 * @return WP_Customize_Panel The instance of the panel that was added. 3819 3811 */ … … 3902 3894 * @see WP_Customize_Section::__construct() 3903 3895 * 3904 * @param WP_Customize_Section|string $id Customize Section object, or SectionID.3896 * @param WP_Customize_Section|string $id Customize Section object, or ID. 3905 3897 * @param array $args Optional. Array of properties for the new Section object. 3906 3898 * See WP_Customize_Section::__construct() for information -
trunk/src/wp-includes/class-wp-customize-panel.php
r47385 r47387 140 140 * @param WP_Customize_Manager $manager Customizer bootstrap instance. 141 141 * @param string $id A specific ID for the panel. 142 * @param array $args Panel arguments. 142 * @param array $args { 143 * Optional. Array of properties for the new Panel object. Default empty array. 144 * 145 * @type int $priority Priority of the panel, defining the display order 146 * of panels and sections. Default 160. 147 * @type string $capability Capability required for the panel. 148 * Default `edit_theme_options`. 149 * @type string|string[] $theme_supports Theme features required to support the panel. 150 * @type string $title Title of the panel to show in UI. 151 * @type string $description Description to show in the UI. 152 * @type string $type Type of the panel. 153 * @type callable $active_callback Active callback. 154 * } 143 155 */ 144 156 public function __construct( $manager, $id, $args = array() ) {
Note: See TracChangeset
for help on using the changeset viewer.