Make WordPress Core


Ignore:
Timestamp:
02/27/2020 08:34:49 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add a reference to WP_Customize_Panel::__construct() for information on accepted arguments in WP_Customize_Manager::add_panel().

Synchronize the documentation between two places, use WP_Customize_Panel::__construct() as the canonical source.

Props iaaxpage, marekdedic.
Fixes #48344.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-panel.php

    r47385 r47387  
    140140     * @param WP_Customize_Manager $manager Customizer bootstrap instance.
    141141     * @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     * }
    143155     */
    144156    public function __construct( $manager, $id, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.