PHP 클래스 Inpsyde\MultilingualPress\Widget\Dashboard\DashboardWidget

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

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