public function register()
{
if ($this->capability && !current_user_can($this->capability)) {
return false;
}
return add_action('wp_dashboard_setup', function () {
wp_add_dashboard_widget($this->id, $this->name, [$this->view, 'render'], $this->control_callback, $this->callback_args);
});
}