Register a widget
Description
Registers a WP_Widget widget
See also
Parameters
$widget
string|WP_Widgetrequired- Either the name of a
WP_Widget
subclass or an instance of aWP_Widget
subclass.
Source
function register_widget( $widget ) {
global $wp_widget_factory;
$wp_widget_factory->register( $widget );
}
Example