PHP Класс Inpsyde\MultilingualPress\Widget\Dashboard\DashboardWidget

С версии: 3.0.0
Показать файл Открыть проект

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

Метод Описание
__construct ( string $id, string $name, Inpsyde\MultilingualPress\Widget\Dashboard\View $view, string $capability = '', array $callback_args = [], callable $control_callback = null ) Constructor. Sets up the properties.
register ( ) : boolean Registers the widget.

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

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

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( string $id, string $name, Inpsyde\MultilingualPress\Widget\Dashboard\View $view, string $capability = '', array $callback_args = [], callable $control_callback = null )
$id string Widget ID.
$name string Widget name.
$view Inpsyde\MultilingualPress\Widget\Dashboard\View View object.
$capability string Optional. Capability required to view the widget. Defaults to empty string.
$callback_args array Optional. Callback arguments. Defaults to empty array.
$control_callback callable Optional. Control callback. Defaults to null.

register() публичный метод

Registers the widget.
С версии: 3.0.0
public register ( ) : boolean
Результат boolean Whether or not the widget was registered successfully.