wpseek.com
A WordPress-centric search engine for devs and theme authors



register_widget › WordPress Function

Since2.8.0
Deprecatedn/a
register_widget ( $widget )
Parameters:
  • (string|WP_Widget) $widget Either the name of a `WP_Widget` subclass or an instance of a `WP_Widget` subclass.
    Required: Yes
See:
  • WP_Widget
Defined at:
Codex:
Change Log:
  • 4.6.0

Register a widget

Registers a WP_Widget widget


Source

function register_widget( $widget ) {
	global $wp_widget_factory;

	$wp_widget_factory->register( $widget );
}