public __construct ( string $id_base, string $name, array $widget_options = [], array $control_options = [] ) : WPDKWidget |
$id_base |
string |
Base ID for the widget, lower case,
if left empty a portion of the widget's class name will be used. Has to be unique. |
$name |
string |
Name for the widget displayed on the configuration page. |
$widget_options |
array |
Optional. Passed to wp_register_sidebar_widget()
- description: shown on the configuration page
- classname |
$control_options |
array |
Optional. Passed to wp_register_widget_control()
- width: required if more than 250px
- height: currently not used but may be needed in the future
- wpdk_version: additional version insert to the right of title
- wpdk_icon: additional icon insert to the left of title |
리턴 |
WPDKWidget |
|