PHP Class WP_Customize_Nav_Menu_Item_Control, wordpress

Since: 4.3.0
Inheritance: extends WP_Customize_Control
Show file Open project: johnpbloch/wordpress

Public Properties

Property Type Description
$setting WP_Customize_Nav_Menu_Item_Setting The nav menu item setting.
$type string Control type.

Public Methods

Method Description
__construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) Constructor.
content_template ( ) JS/Underscore template for the control UI.
json ( ) : array Return parameters for this control.
render_content ( ) Don't render the control's content - it's rendered with a JS template.

Method Details

__construct() public method

Constructor.
See also: WP_Customize_Control::__construct()
Since: 4.3.0
public __construct ( WP_Customize_Manager $manager, string $id, array $args = [] )
$manager WP_Customize_Manager Customizer bootstrap instance.
$id string The control ID.
$args array Optional. Overrides class property defaults.

content_template() public method

JS/Underscore template for the control UI.
Since: 4.3.0
public content_template ( )

json() public method

Return parameters for this control.
Since: 4.3.0
public json ( ) : array
return array Exported parameters.

render_content() public method

Don't render the control's content - it's rendered with a JS template.
Since: 4.3.0
public render_content ( )

Property Details

$setting public property

The nav menu item setting.
Since: 4.3.0
public WP_Customize_Nav_Menu_Item_Setting $setting
return WP_Customize_Nav_Menu_Item_Setting

$type public property

Control type.
Since: 4.3.0
public string $type
return string