/** * Display SendGrid statistics page * * @return void */ public static function show_statistics_page() { $api_key = Sendgrid_Tools::get_api_key(); if ("apikey" == Sendgrid_Tools::get_auth_method() and isset($api_key) and !Sendgrid_Tools::check_api_key_stats($api_key)) { $message = 'Your Api key is not having statistics permissions'; $status = 'error'; } require plugin_dir_path(__FILE__) . '../view/sendgrid_stats.php'; }