public function add_meta_box() { if (strstr($_SERVER['REQUEST_URI'], 'post-new.php')) { return false; } $existing = mailchimp_tools_get_existing_campaign_data_for_post(get_post($_GET['post'])); if (!$existing) { return false; } parent::add_meta_box(); }