Skip to content

Instantly share code, notes, and snippets.

View Ansif's full-sized avatar

Ansif Ansif

  • Coimbatore
View GitHub Profile
@Ansif
Ansif / functions.php
Created November 23, 2015 10:26
How to integrate option tree in wordpress theme?
/* 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' );