Last active
October 10, 2015 09:37
-
-
Save jaredkc/3670236 to your computer and use it in GitHub Desktop.
Carrington Build : remove modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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