Function vanilla_widgets_register
Registers a new Vanilla Widget
License:
GPLv3
Author: Nevma, http://www.nevma.gr, info@nevma.gr
Located at base/vanilla-widgets.php
Author: Nevma, http://www.nevma.gr, info@nevma.gr
Located at base/vanilla-widgets.php
Parameters summary
string |
$widget_name |
<p>A unique widget name, containing only alphanumeric characters and underscores.</p> |
string |
$callback |
<p>A valid PHP callback to display the widget output. The widget id will be passed to it.</p> |
Return value summary
boolean
|
True on success, or false if the class already exists, or the widget name is invalid. |