WP_Customize_Partial::__construct

SummerySummery

Constructor.

Syntax

WP_Customize_Partial::__construct( WP_Customize_Selective_Refresh $component, string $id, array $args = array() )

DescriptionDescription

Supplied $args override class property defaults.

If $args['settings'] is not defined, use the $id as the setting ID.

ParametersParameters

$component

(WP_Customize_Selective_Refresh) (Required) Customize Partial Refresh plugin instance.

$id

(string) (Required) Control ID.

$args

(array) (Optional) Arguments to override class property defaults.

  • 'settings'
    (array|string) All settings IDs tied to the partial. If undefined, $id will be used.

Default value: array()

SourceSource

File: wp-includes/customize/class-wp-customize-partial.php


			

ChangelogChangelog

Changelog
Version Description
4.5.0 Introduced.
Scroll to Top