public function setUp()
{
// (optional) this can be set via the constructor. For available values, see https://codex.wordpress.org/Roles_and_Capabilities.
$this->setCapability('read');
// (required) Set the root page.
$this->setRootMenuPageBySlug('edit.php?post_type=' . AdminPageFrameworkLoader_Registry::$aPostTypes['demo']);
/**
* (optional) Add links in the plugin listing table. ( .../wp-admin/plugins.php )
*/
/*
$this->addLinkToPluginDescription(
"<a href='http://en.michaeluno.jp/donate'>Donate</a>",
"<a href='https://github.com/michaeluno/admin-page-framework' title='Contribute to the GitHub repository!' >Repository</a>"
);
$this->addLinkToPluginTitle(
"<a href='http://en.michaeluno.jp'>miunosoft</a>"
);
$this->setPluginSettingsLinkLabel( __( 'Built-in Field Types', 'admin-page-framework-loader' ) );
*/
// Disable the action link in the plugin listing table.
$this->setPluginSettingsLinkLabel('');
// Add pages - below classes do not extend the framework factory class but uses the framework hooks to add pages.
new APF_Demo_BuiltinFieldType();
new APF_Demo_AdvancedUsage();
new APF_Demo_CustomFieldType();
new APF_Demo_PageMetaBox();
new APF_Demo_ManageOptions();
new APF_Demo_HiddenPage();
new APF_Demo_Contact();
// Add an external link.
$this->addSubMenuItem(array('href' => 'http://admin-page-framework.michaeluno.jp/en/v3/package-AdminPageFramework.AdminPage.html', 'title' => __('Documentation', 'admin-page-framework-loader'), 'order' => 60));
}