[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Widget API: WP_Widget_Factory class
File Size: | 141 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP_Widget_Factory:: (7 methods):
__construct()
WP_Widget_Factory()
register()
unregister()
_register_widgets()
get_widget_object()
get_widget_key()
Class: WP_Widget_Factory - X-Ref
Singleton that registers and instantiates WP_Widget classes.__construct() X-Ref |
PHP5 constructor. |
WP_Widget_Factory() X-Ref |
PHP4 constructor. |
register( $widget ) X-Ref |
Registers a widget subclass. param: string|WP_Widget $widget Either the name of a `WP_Widget` subclass or an instance of a `WP_Widget` subclass. |
unregister( $widget ) X-Ref |
Un-registers a widget subclass. param: string|WP_Widget $widget Either the name of a `WP_Widget` subclass or an instance of a `WP_Widget` subclass. |
_register_widgets() X-Ref |
Serves as a utility method for adding widgets to the registered widgets global. |
get_widget_object( $id_base ) X-Ref |
Returns the registered WP_Widget object for the given widget type. return: WP_Widget|null param: string $id_base Widget type ID. |
get_widget_key( $id_base ) X-Ref |
Returns the registered key for the given widget type. return: string param: string $id_base Widget type ID. |
Generated : Sat Dec 21 08:20:01 2024 | Cross-referenced by PHPXref |