register_widget() – Register a widget

You appear to be a bot. Output may be restricted

Description

Register a widget

Registers a WP_Widget widget

Usage

register_widget( $widget );

Parameters

$widget
( string|WP_Widget ) required – Either the name of a WP_Widget subclass or an instance of a WP_Widget subclass.

Returns

void

Source

File name: wordpress/wp-includes/widgets.php
Lines:

1 to 5 of 5
function register_widget( $widget ) {
  global $wp_widget_factory;

  $wp_widget_factory->register( $widget );
}
 

 View on GitHub View on Trac