addon = $ultimatemember->addons['system_info']; add_submenu_page('ultimatemember', "System Info","System Info", 'manage_options', 'system_info', array(&$this, 'content') ); } function um_admin_addon_hook( $hook ) { global $ultimatemember; switch ( $hook ) { case 'download_system_info': // do something break; default: break; } } function admin_init() { if ( isset( $_REQUEST['um-addon-hook'] ) ) { $hook = $_REQUEST['um-addon-hook']; do_action("um_admin_addon_hook", $hook ); } } function content() { global $wpdb, $ultimatemember; if( !class_exists( 'Browser' ) ) require_once um_path . 'core/lib/browser.php'; // Detect browser $browser = new Browser(); // Get theme info $theme_data = wp_get_theme(); $theme = $theme_data->Name . ' ' . $theme_data->Version; // Identify Hosting Provider $host = um_get_host(); ?>