WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKWidget Class Reference
Inheritance diagram for WPDKWidget:

Public Member Functions

 __construct ($id_base, $name, $widget_options=array(), $control_options=array())
 Construct. More...
 
 admin_print_styles ()
 Admin widget head page. More...
 
 willWidgetsHeadAdminPage ()
 Widgets head admin page. More...
 
 willWidgetsAdminPage ()
 Widgets admin page. More...
 

Detailed Description

Widget model class

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2013-11-08
Version
1.0.0
Since
1.4.0

Definition at line 13 of file wpdk-widget.php.

Constructor & Destructor Documentation

__construct (   $id_base,
  $name,
  $widget_options = array(),
  $control_options = array() 
)

Construct.

Create an instance of WPDKWidget class

Parameters
string$id_baseBase ID for the widget, lower case, if left empty a portion of the widget's class name will be used. Has to be unique.
string$nameName for the widget displayed on the configuration page.
array$widget_optionsOptional. Passed to wp_register_sidebar_widget()
  • description: shown on the configuration page
  • classname
array$control_optionsOptional. 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
Returns
WPDKWidget

Definition at line 34 of file wpdk-widget.php.

Member Function Documentation

admin_print_styles ( )

Admin widget head page.

Admin widget head page

Definition at line 53 of file wpdk-widget.php.

willWidgetsAdminPage ( )

Widgets admin page.

Fires before the Widgets administration page content loads

Definition at line 104 of file wpdk-widget.php.

willWidgetsHeadAdminPage ( )

Widgets head admin page.

This delegate action hook is called in the head of Widgets admin page

Definition at line 94 of file wpdk-widget.php.


The documentation for this class was generated from the following file: