public function _action_setup_admin_page() { // Prevent any modules with page to be added to menu if (!$this->page) { return; } Admin::add_menu($this->page->view, $this->page->title, $this->page->menu, 'manage_options', 10); }
public function _action_setup_admin_page() { if (!$this->page) { return; } \FakerPress\Admin::add_menu($this->page->view, $this->page->title, $this->page->menu, 'manage_options', 10); }