PHP 클래스 WPDKWidget

부터: 1.4.0
저자: =undo= ([email protected])
상속: extends WP_Widget
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 메소드들

메소드 설명
__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