Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Manually upgrading via WP CLI

Ian Dunn edited this page Nov 8, 2013 · 2 revisions

In some cases it can be desirable to run CampTix's upgrade routine manually, instead of having it automatically run during the first visit to the site after the latest code has been installed.

For instance, if your installation has a large data set, and the new version of CampTix will need to convert it to a different format, that operation could take several minutes or longer, which would delay the user's request.

To support this, CampTix ships with a command for WP-CLI so that the an administrator can manually trigger the update from the command line.

To do that, follow these steps:

  1. Install WP-CLI on your server and make sure it's working.

  2. Set the camptix_enable_automatic_upgrades filter to false by adding this code to a functionality plugin:

add_filter( 'camptix_enable_automatic_upgrades', '__return_false' );

  1. Upgrade to the latest version of CampTix

  2. cd to the root of your WordPress installation, and run wp camptix upgrade

Clone this wiki locally