Uses
| Uses | Description |
|---|---|
| wp-admin/includes/widgets.php: wp_widget_control() | Meta widget used to display the control form for a widget. |
Retrieves the widget control markup.
(array) (Required) Widget control arguments.
(string) Widget control form HTML markup.
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 -->';
ob_start();
wp_widget_control( ...$args );
$control_tpl = ob_get_clean();
return $control_tpl;
} | Version | Description |
|---|---|
| 3.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_widgets/get_widget_control