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:
  • WP_Widget
Defined at:
Change Log:
  • 4: .

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.

Related Functions

register_widget, unregister_sidebar_widget, unregister_widget_control, unregister_sidebar, wp_unregister_sidebar_widget

Top Google Results

User discussions

wpseek mobile