Skip to content

Instantly share code, notes, and snippets.

@sumanahmed
Created January 8, 2016 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sumanahmed/e5a9aea2a924dc6391e7 to your computer and use it in GitHub Desktop.
Save sumanahmed/e5a9aea2a924dc6391e7 to your computer and use it in GitHub Desktop.
/**
* 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