mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@47386 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -150,7 +150,24 @@ class WP_Customize_Section {
|
||||
*
|
||||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||
* @param string $id A specific ID of the section.
|
||||
* @param array $args Section arguments.
|
||||
* @param array $args {
|
||||
* Optional. Array of properties for the new Section object. Default empty array.
|
||||
*
|
||||
* @type int $priority Priority of the section, defining the display order
|
||||
* of panels and sections. Default 160.
|
||||
* @type string $panel The panel this section belongs to (if any).
|
||||
* Default empty.
|
||||
* @type string $capability Capability required for the section.
|
||||
* Default 'edit_theme_options'
|
||||
* @type string|string[] $theme_supports Theme features required to support the section.
|
||||
* @type string $title Title of the section to show in UI.
|
||||
* @type string $description Description to show in the UI.
|
||||
* @type string $type Type of the section.
|
||||
* @type callable $active_callback Active callback.
|
||||
* @type bool $description_hidden Hide the description behind a help icon,
|
||||
* instead of inline above the first control.
|
||||
* Default false.
|
||||
* }
|
||||
*/
|
||||
public function __construct( $manager, $id, $args = array() ) {
|
||||
$keys = array_keys( get_object_vars( $this ) );
|
||||
|
||||
Reference in New Issue
Block a user