PHP Class WPDKWidget

Since: 1.4.0
Author: =undo= ([email protected])
Inheritance: extends WP_Widget
Show file Open project: wpxtreme/wpdk

Public Methods

Method Description
__construct ( string $id_base, string $name, array $widget_options = [], array $control_options = [] ) : WPDKWidget Create an instance of WPDKWidget class
_admin_print_styles ( ) Fires when styles are printed for a specific admin page based on $hook_suffix.
admin_head ( ) Widgets admin head
admin_print_styles ( ) Fires when styles are printed for a specific admin page based on $hook_suffix.
widgets_admin_page ( ) Fires before the Widgets administration page content loads.
willWidgetsAdminPage ( ) Fires before the Widgets administration page content loads

Method Details

__construct() public method

Create an instance of WPDKWidget class
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
return WPDKWidget

_admin_print_styles() public method

Fires when styles are printed for a specific admin page based on $hook_suffix.
public _admin_print_styles ( )

admin_head() public method

Widgets admin head
Since: 1.5.3
public admin_head ( )

admin_print_styles() public method

Fires when styles are printed for a specific admin page based on $hook_suffix.
public admin_print_styles ( )

widgets_admin_page() public method

Fires before the Widgets administration page content loads.
public widgets_admin_page ( )

willWidgetsAdminPage() public method

Fires before the Widgets administration page content loads
Deprecation: since 1.5.3 use widgets_admin_page instead