Skip to content

Instantly share code, notes, and snippets.

@jaredkc
Last active October 10, 2015 09:37
Show Gist options
  • Save jaredkc/3670236 to your computer and use it in GitHub Desktop.
Save jaredkc/3670236 to your computer and use it in GitHub Desktop.
Carrington Build : remove modules
/**
* Remove modules that are not wanted/needed.
* This example removes the carousel and hero modules.
* You just need to pass the ID of desired module(s) to remove.
*/
function build_deregister_modules() {
cfct_build_deregister_module('cfct_module_carousel');
cfct_build_deregister_module('cfct_module_hero');
}
add_action('cfct-modules-included', 'build_deregister_modules');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment