unregister_widget
unregister_widget ( $widget )
Parameters:- (string|WP_Widget) widget Either the name of a `WP_Widget` subclass or an instance of a `WP_Widget` subclass.
See:Defined at:Change Log: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
Description
Unregisters a widget.Unregisters a WP_Widget widget. Useful for un-registering default widgets.
Run within a function hooked to the {@see 'widgets_init'} action.