I have a theme that is being used for a multisite installation that will be used by 6 sub-brands of an organization. Each sub-brand will only require some of the custom post types set up by the theme – thus I would like to hide the ones not needed.
The theme has an options page where I can set a variable to state which brand is using the theme. Can I then get the functions.php to check what the variable has been set to and then register post types depending of this variable?
eg. If the brandX then register post types A & C, if brandY then register post type B, if BrandC then register none.