1

I use the Options Tree. Just to use a Meta Box only. And I do not use his Theme Options.

In the picture below, how to throw Theme Options menu? Is it possible?

Option Tree Theme Options

4

This can be removed using remove_submenu_page function. Put following codes in your functions.php

function remove_ot_menu () {
    remove_submenu_page( 'themes.php', 'ot-theme-options' );
}
add_action( 'admin_init', 'remove_ot_menu' );
0
0
/**
 * Option Tree Files
 * Including Files and setting up Option Tree
 *
 * @Since 1.0.0
 * Version 1.0.0
 */
if(class_exists('OT_Loader' )): 
            //Filter for option tree settings
    add_filter( 'ot_show_pages', '__return_false' );
    add_filter( 'ot_show_new_layout', '__return_false' );
    add_filter( 'ot_post_formats', '__return_true');
    add_filter( 'ot_use_theme_options', '__return_false' ); //This filter removes theme options page.
endif;

The code above is helpful to remove custom Theme options page from Option Tree, make sure you add this in functions.php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.