Definition:
function unregister_widget($widget_class) {}
Unregister a widget
Unregisters a WP_Widget widget. Useful for unregistering default widgets. Run within a function hooked to the widgets_init action.
Parameters
- string $widget_class: The name of a class that extends WP_Widget
Source code
function unregister_widget($widget_class) { global $wp_widget_factory; $wp_widget_factory->unregister($widget_class); }
3141
No comments yet... Be the first to leave a reply!