Make WordPress Core


Ignore:
Timestamp:
02/27/2020 08:27:45 PM (7 years ago)
Author:
SergeyBiryukov
Message:

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

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

Props amolv, marekdedic.
Fixes #48346.

File:
1 edited

Legend:

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

    r47385 r47386  
    151151         * @param WP_Customize_Manager $manager Customizer bootstrap instance.
    152152         * @param string               $id      A specific ID of the section.
    153          * @param array                $args    Section arguments.
     153         * @param array                $args    {
     154         *     Optional. Array of properties for the new Section object. Default empty array.
     155         *
     156         *     @type int             $priority           Priority of the section, defining the display order
     157         *                                               of panels and sections. Default 160.
     158         *     @type string          $panel              The panel this section belongs to (if any).
     159         *                                               Default empty.
     160         *     @type string          $capability         Capability required for the section.
     161         *                                               Default 'edit_theme_options'
     162         *     @type string|string[] $theme_supports     Theme features required to support the section.
     163         *     @type string          $title              Title of the section to show in UI.
     164         *     @type string          $description        Description to show in the UI.
     165         *     @type string          $type               Type of the section.
     166         *     @type callable        $active_callback    Active callback.
     167         *     @type bool            $description_hidden Hide the description behind a help icon,
     168         *                                               instead of inline above the first control.
     169         *                                               Default false.
     170         * }
    154171         */
    155172        public function __construct( $manager, $id, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.