Core Class
View Source on Trac ↗
Core Class
WP_Widget_Factory
class WP_Widget_Factory
// Constructor: function Object() { [native code] } Singleton that registers and instantiates WP_Widget classes.
Methods 7 methods
| Method / Return | Description |
|---|---|
| __construct() void | PHP5 constructor. |
| WP_Widget_Factory() void | PHP4 constructor. |
| register() void | Registers a widget subclass.
Parameters: $widget: mixed |
| unregister() void | Un-registers a widget subclass.
Parameters: $widget: mixed |
| _register_widgets() void | Serves as a utility method for adding widgets to the registered widgets global. |
| get_widget_object() (WP_Widget | Returns the registered WP_Widget object for the given widget type.
Parameters: $id_base: mixed |
| get_widget_key() string | Returns the registered key for the given widget type.
Parameters: $id_base: mixed |
Properties
| Property / Type | Description |
|---|---|
| $widgets mixed public | No description available. |
Class Information
Since Version
2.8.0
Source File
wp-includes/class-wp-widget-factory.php
Advertisement