Exciting things

WordPress Datascript

 

wp-datascript

DRY – Don’t Repeat Yourself – is a principle that I have followed for a long time. I noticed that whenever developers need to deploy a new version of WordPress to production/staging environment – we need to do many manual stuffs related to “configuration data”, eg: Page, Category structure, Menu settings.

The current WordPress Export/Import data plugin is not flexible enough for me to move my “configuration structure”. Also, I have tried to search many WP plugins – but there is no cheap/free solution.

So, I write myself a simple plugin that allows me to create a simple “JSON data script”. It’s just simply a collection of commands, written in JSON format – that allows to add/update/delete pages using slug, create/update category structure.

This is just a project for fun! You can download and install it from here: https://github.com/khoatran/wordpress-datascript

 

Leave a Reply

Your email address will not be published. Required fields are marked *