Created
November 23, 2015 10:26
-
-
Save Ansif/fa5d771469f2a78353b7 to your computer and use it in GitHub Desktop.
How to integrate option tree in wordpress theme?
This file contains hidden or 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
/* Theme Options */ | |
require_once( get_template_directory() . '/inc/theme-options/option-tree/ot-loader.php' ); | |
// Integrate OptionTree | |
add_filter( 'ot_theme_mode', '__return_true' ); | |
// Hide Documentation Page | |
add_filter( 'ot_show_pages', '__return_false' ); | |
add_filter( 'ot_show_new_layout', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment