Skip to content

Instantly share code, notes, and snippets.

@stevengliebe
Last active September 1, 2017 02:43
Show Gist options
  • Save stevengliebe/21197d64c7a23874f39a to your computer and use it in GitHub Desktop.
Save stevengliebe/21197d64c7a23874f39a to your computer and use it in GitHub Desktop.
<?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