
A plugin inspired by Drupal’s modules (Features and Strongarm) that enable the versioning of options in WordPress.
The general idea is to export a maximum amount of settings and structural content of the database to files to be able to deploy them through VCS (like SVN, GIT, Mercurial).
For now, the only exportable settings are the entries of the “wp-options” table.
If you’re the only developer working on you’re website, you’re having only one development environment (production server) and you do not use VCS: no, the only things you need is to close your eyes, cross your fingers and hope that everything go fine.
In the admin, a new page called Features is accessible under the Tools menu. This page list all the settings contain in your features_options_data.php file. If one of the setting in your database has not the same value of the one in the file, the Revert button will be accessible to click and a text field will show you the value from the database.
To add a new option from the wp_options table, use the features_options filter to alter the options array: column value as the key and the option_value column value as the value.
This plugin is under development. If you know what your doing, you can use it and there will be an upgrade path, at least, a manuel one.
Like Features, the goal would be to have plugins generation for features instead of manually edit the features_options_data.php file of the plugin.
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.