PHP Класс PodsWidgetSingle, pods

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

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

Метод Описание
__construct ( string $id_base = 'pods_widget_single', string $name = 'Pods - Single Item', array $widget_options = [], array $control_options = [] ) Register the widget
form ( $instance ) Widget Form
update ( $new_instance, $old_instance ) Updates the new instance of widget arguments
widget ( $args, $instance ) Output of widget

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

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

Register the widget
С версии: 2.5.4 Note: params are totally ignored. Included for the sake of strict standards.
public __construct ( string $id_base = 'pods_widget_single', string $name = 'Pods - Single Item', array $widget_options = [], array $control_options = [] )
$id_base string Optional Base ID for the widget, lowercase and unique. 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. Widget options. See {@see \wp_register_sidebar_widget()} for information on accepted arguments. Default empty array.
$control_options array Optional. Widget control options. See {@see \wp_register_widget_control()} for information on accepted arguments. Default empty array.

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

Widget Form
public form ( $instance )

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

Updates the new instance of widget arguments
public update ( $new_instance, $old_instance )

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

Output of widget
public widget ( $args, $instance )