Last active
September 1, 2017 02:43
-
-
Save stevengliebe/21197d64c7a23874f39a to your computer and use it in GitHub Desktop.
Church Content plugin basic usage. http://churchthemes.com/guides/developer/church-content/
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
<?php | |
function yourtheme_add_ctc_support() { | |
/** | |
* Plugin Support | |
* | |
* Tell plugin theme supports it. This leaves all features disabled so they can | |
* be enabled explicitly below. When support not added, all features are revealed | |
* so user can access content (in case switched to an unsupported theme). | |
* | |
* This also removes the plugin's "not using compatible theme" message. | |
*/ | |
add_theme_support( 'church-theme-content' ); | |
/** | |
* Plugin Features | |
* | |
* When array of arguments not given, plugin defaults are used (enabling all taxonomies | |
* and fields for feature). It is recommended to explicitly specify taxonomies and | |
* fields used by theme so plugin updates don't reveal unsupported features. | |
*/ | |
add_theme_support( 'ctc-sermons' ); | |
add_theme_support( 'ctc-events' ); | |
add_theme_support( 'ctc-people' ); | |
add_theme_support( 'ctc-locations' ); | |
} | |
add_action( 'after_setup_theme', 'yourtheme_add_ctc_support' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment