setCapability( 'read' ); /* ( required ) Set the root page */ $this->setRootMenuPageBySlug( 'APF_NetworkAdmin' ); /* ( required ) Add sub-menu items (pages or links) */ $this->addSubMenuItems( array( 'title' => 'Tests', 'page_slug' => $this->sPageSlug, 'order' => 99999, ) ); } /** * The pre-defined callback method that is triggered when the page loads. * * @callback action load_{page slug} */ public function load_apf_tests( $oAdminPage ) { new APF_Demo_Test_Transients( $this, $this->sPageSlug ); } }