Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Ninetheme
Created November 26, 2016 14:16
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 Ninetheme/2533cd520191fe3809361cd70964f0bb to your computer and use it in GitHub Desktop.
Save Ninetheme/2533cd520191fe3809361cd70964f0bb to your computer and use it in GitHub Desktop.
undefined ot_get_option solution
if ( ! function_exists( 'ot_settings_id' ) ) {
function ot_get_option() {
return false;
}
}
if ( function_exists( 'ot_settings_id' ) ) {
// add filter for options panel loader
add_filter( 'ot_show_pages', '__return_false' );
add_filter( 'ot_show_new_layout', '__return_false' );
// Theme options admin panel setings file
include_once get_template_directory() . '/includes/theme-options.php';
// Theme customize css setting file
require_once get_template_directory() . '/includes/custom-style.php';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment