PHP Класс WPDKWidget

С версии: 1.4.0
Автор: =undo= ([email protected])
Наследование: extends WP_Widget
Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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
Результат WPDKWidget

_admin_print_styles() публичный Метод

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

admin_head() публичный Метод

Widgets admin head
С версии: 1.5.3
public admin_head ( )

admin_print_styles() публичный Метод

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

widgets_admin_page() публичный Метод

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

willWidgetsAdminPage() публичный Метод

Fires before the Widgets administration page content loads
Устаревший: since 1.5.3 use widgets_admin_page instead