Created
January 8, 2016 06:36
-
-
Save sumanahmed/e5a9aea2a924dc6391e7 to your computer and use it in GitHub Desktop.
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
/** | |
* Required: set 'ot_theme_mode' filter to true. | |
*/ | |
add_filter( 'ot_theme_mode', '__return_true' ); | |
/** | |
* Required: include OptionTree. | |
*/ | |
require( trailingslashit( get_template_directory() ) . 'option-tree/ot-loader.php' ); | |
/* Activation option tree*/ | |
add_filter( 'ot_show_pages', '__return_false' ); | |
add_filter( 'ot_show_new_layout', '__return_false' ); | |
add_filter( 'ot_theme_mode', '__return_true' ); | |
include_once( 'option-tree/ot-loader.php' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment