Un-registers a widget subclass.
Parameters
$widgetstring|WP_Widgetrequired- Either the name of a
WP_Widgetsubclass or an instance of aWP_Widgetsubclass.
Source
public function unregister( $widget ) {
if ( $widget instanceof WP_Widget ) {
unset( $this->widgets[ spl_object_hash( $widget ) ] );
} else {
unset( $this->widgets[ $widget ] );
}
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.