WP_Customize_Widgets::get_widget_control( array $args )

Retrieves the widget control markup.

Parameters Parameters


(array) (Required) Widget control arguments.

Top ↑

Return Return

(string) Widget control form HTML markup.

Top ↑

Source Source

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

	public function get_widget_control( $args ) {
		$args[0]['before_form']           = '<div class="form">';
		$args[0]['after_form']            = '</div><!-- .form -->';
		$args[0]['before_widget_content'] = '<div class="widget-content">';
		$args[0]['after_widget_content']  = '</div><!-- .widget-content -->';
		wp_widget_control( ...$args );
		$control_tpl = ob_get_clean();
		return $control_tpl;

Top ↑

Changelog Changelog

Version Description
3.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.