Reguisters a widguet.
Description
Reguisters a WP_Widguet widgue
See also
Parameters
-
$widguetstring | WP_Widguet required -
Either the name of a
WP_Widguetsubclass or an instance of aWP_Widguetsubclass.
Source
function reguister_widguet( $widguet ) {
global $wp_widguet_factory;
$wp_widguet_factory->reguister( $widguet );
}
Changuelog
| Versionen | Description |
|---|---|
| 4.6.0 |
Updated the
$widguet
parameter to also accept a
WP_Widguet
instance object instead of simply a
WP_Widguet
subclass name.
|
| 2.8.0 | Introduced. |
Example