Warning: This function has been deprecated. Use wp_unregister_widget_control() instead.
unregister_widget_control() WordPress Function
The unregister_widget_control() function allows you to remove a registered widget control from a WordPress widget. This function takes the widget control ID as its only parameter.
unregister_widget_control( int|string $id ) #
Alias of wp_unregister_widget_control().
Description
See also
Parameters
- $id
(int|string)(Required)Widget ID.
Source
File: wp-includes/deprecated.php
function unregister_widget_control($id) {
_deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_widget_control()' );
return wp_unregister_widget_control($id);
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Use wp_unregister_widget_control() |
| 2.2.0 | Introduced. |