WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/25/2020 04:39:36 PM (12 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r47198 r47364  
    185185     *     @type string               $setting         The primary setting for the control (if there is one).
    186186     *                                                 Default 'default'.
     187     *     @type string               $capability      Capability required to use this control. Normally this is empty
     188     *                                                 and the capability is derived from `$settings`.
    187189     *     @type int                  $priority        Order priority to load the control. Default 10.
    188190     *     @type string               $section         Section the control belongs to. Default empty.
     
    196198     *                                                 used for 'checkbox', 'radio', 'select', 'textarea', or
    197199     *                                                 'dropdown-pages' control types. Default empty array.
     200     *     @type bool                 $allow_addition  Show UI for adding new content, currently only used for the
     201     *                                                 dropdown-pages control. Default false.
    198202     *     @type array                $json            Deprecated. Use WP_Customize_Control::json() instead.
    199203     *     @type string               $type            Control type. Core controls include 'text', 'checkbox',
     
    201205     *                                                 input types such as 'email', 'url', 'number', 'hidden', and
    202206     *                                                 'date' are supported implicitly. Default 'text'.
     207     *     @type callback             $active_callback Active callback.
    203208     * }
    204209     */
Note: See TracChangeset for help on using the changeset viewer.