[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/wp-includes/ -> class-wp-widget-factory.php (summary)

Widget API: WP_Widget_Factory class

File Size: 105 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Widget_Factory:: (5 methods):
  __construct()
  WP_Widget_Factory()
  register()
  unregister()
  _register_widgets()


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.




Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1