title = $title; $this->id = $id; $this->content = $content; $this->view = $view; $this->priority = $priority; } /** * Registers the help tab. * * @since 1.0.0 * * @return bool Whether the help tab was registered successfully. */ public function register() { $screen = get_current_screen(); if ( ! $screen ) { return false; } $screen->add_help_tab( [ 'title' => $this->title, 'id' => $this->id, 'content' => $this->content, 'callback' => [ $this->view, 'render' ], 'priority' => $this->priority, ]); return true; } }