## WPDK Sample
* https://github.com/wpXtreme/wpdk-sample-menu
renderByArray()
public static method
Render a list of sub menu from any top level menu. Useful to add sub menus to Custom Post Type top level menu or
to any WordPress top level menu
## Example
$sub_menus = array(
'edit.php?post_type=' . WPXMailManagerCustomPostType::ID => array(
WPDKSubMenuDivider::DIVIDER,
array(
'menuTitle' => __( 'Settings', WPXMAILMANAGER_TEXTDOMAIN ),
'capability' => self::MENU_CAPABILITY,
'viewController' => 'WPXMailManagerConfigurationViewController'
),
WPDKSubMenuDivider::DIVIDER,
array(
'menuTitle' => __( 'About', WPXMAILMANAGER_TEXTDOMAIN ),
'capability' => self::MENU_CAPABILITY,
'viewController' => 'WPXMailManagerConfigurationViewController'
),
)
);
WPDKSubMenu::renderByArray( $sub_menus );
$pageTitle public property