Control::__construct( string $id, array $setting_args, array $control_args, string $custom_control = null, array $partial = null )

Cnstructor.


Parameters

$id

(Required) the control id.

$setting_args

(Required) the add_setting array.

$control_args

(Required) the add_control array.

$custom_control

(Optional) [optional] this should be added if the control is a custom control.

Default value: null

$partial

(Optional) [optional] this should be added if the control is a selective refresh control..

Default value: null


Source

File: inc/customizer/types/control.php