forumone/wp-cfm — pull request #29 by alfreddatakillen (2014-09-03 14:46:48+00:00)
Title: Registering bundles programmatically

Hey Matt! How are you today? ;)
Here is another thing that we needed in the project we are working on.
Our current customer has a lot of blogs in a multisite Wordpress. We needed a way to create similar bundles on each blog. Also, we needed a way to add or remove options from all those bundles, during development. Doing it by hand, on all those blogs, was not human.
So, we came up with the idea of programmatically registering bundles, just as you would register_sidebar, register_post_type etc in Wordpress. (First, we had the idea of making a filter, hence the git branch name, but we thought registering is more true to how Wordpress does similar things.)
Also, this makes it possible for plugins etc to tell WP-CFM which options they are using, so everyone does not have to figure it out by themselves.