mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Docs: Add a reference to WP_Customize_Control::__construct() for information on accepted arguments in WP_Customize_Manager::add_control().
Synchronize the documentation between two places, use `WP_Customize_Control::__construct()` as the canonical source. Props hAmpzter, marekdedic, SergeyBiryukov. Fixes #48343. git-svn-id: https://develop.svn.wordpress.org/trunk@47364 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -184,6 +184,8 @@ class WP_Customize_Control {
|
||||
* be used.
|
||||
* @type string $setting The primary setting for the control (if there is one).
|
||||
* Default 'default'.
|
||||
* @type string $capability Capability required to use this control. Normally this is empty
|
||||
* and the capability is derived from `$settings`.
|
||||
* @type int $priority Order priority to load the control. Default 10.
|
||||
* @type string $section Section the control belongs to. Default empty.
|
||||
* @type string $label Label for the control. Default empty.
|
||||
@@ -195,11 +197,14 @@ class WP_Customize_Control {
|
||||
* attribute names are the keys and values are the values. Not
|
||||
* used for 'checkbox', 'radio', 'select', 'textarea', or
|
||||
* 'dropdown-pages' control types. Default empty array.
|
||||
* @type bool $allow_addition Show UI for adding new content, currently only used for the
|
||||
* dropdown-pages control. Default false.
|
||||
* @type array $json Deprecated. Use WP_Customize_Control::json() instead.
|
||||
* @type string $type Control type. Core controls include 'text', 'checkbox',
|
||||
* 'textarea', 'radio', 'select', and 'dropdown-pages'. Additional
|
||||
* input types such as 'email', 'url', 'number', 'hidden', and
|
||||
* 'date' are supported implicitly. Default 'text'.
|
||||
* @type callback $active_callback Active callback.
|
||||
* }
|
||||
*/
|
||||
public function __construct( $manager, $id, $args = array() ) {
|
||||
|
||||
Reference in New Issue
Block a user