Register a widget

Registers a WP_Widget widget

Signature

register_widget( $widget_class )
widget_class
 (string) The name of a class that extends WP_Widget

Return

(void)

Source

function register_widget($widget_class) {
	global $wp_widget_factory;

	$wp_widget_factory->register($widget_class);
}
WP Trac GitHub

Link here