wp_unregister_widget_control() WordPress Function
The wp_unregister_widget_control() function can be used to unregister a custom widget control from a particular sidebar. This function is typically used in conjunction with the wp_register_widget_control() function.
wp_unregister_widget_control( int|string $id ) #
Remove control callback for widget.
Parameters
- $id
(int|string)(Required)Widget ID.
Source
File: wp-includes/widgets.php
function wp_unregister_widget_control( $id ) {
wp_register_widget_control( $id, '', '' );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |