/**
  * Send post directly to production.
  */
 public function quick_deploy()
 {
     // Make sure a query param 'post_id' exists in current URL.
     if (!isset($_GET['post_id'])) {
         wp_die(__('No post ID has been provided.', 'sme-content-staging'));
     }
     // Get as integer.
     $post_id = intval($_GET['post_id']);
     $batch = $this->api->get_batch();
     $batch->set_title('Quick Deploy ' . current_time('mysql'));
     $this->batch_dao->insert($batch);
     $this->batch_dao->add_post_meta($batch->get_id(), 'sme_selected_post', $post_id);
     // Redirect user to pre-flight page.
     wp_redirect(admin_url('admin.php?page=sme-preflight-batch&id=' . $batch->get_id()));
     exit;
 }