PHP Класс Give_Forms_Widget, Give

С версии: 1.0
Наследование: extends WP_Widget
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$self string The widget class name

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

Метод Описание
__construct ( ) Instantiate the class
admin_widget_scripts ( string $hook ) : void Load widget assets only on the widget page
flush_widget_cache ( ) : void Flush widget cache
form ( array $instance ) : string Output the settings update form.
update ( array $new_instance, array $old_instance ) : array Update the widget
widget ( array $args, array $instance ) Echo the widget content.
widget_init ( ) : void Register the widget

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

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

Instantiate the class
public __construct ( )

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

Load widget assets only on the widget page
public admin_widget_scripts ( string $hook ) : void
$hook string
Результат void

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

Flush widget cache
public flush_widget_cache ( ) : void
Результат void

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

Output the settings update form.
public form ( array $instance ) : string
$instance array Current settings.
Результат string

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

Update the widget
public update ( array $new_instance, array $old_instance ) : array
$new_instance array
$old_instance array
Результат array

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

Echo the widget content.
public widget ( array $args, array $instance )
$args array Display arguments including before_title, after_title, before_widget, and after_widget.
$instance array The settings for the particular instance of the widget.

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

Register the widget
public widget_init ( ) : void
Результат void

Описание свойств

$self защищенное свойство

The widget class name
protected string $self
Результат string