Method | Description | |
---|---|---|
__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. |
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. |