WordPress.org

Ready to get started?Download WordPress

Forums

OptionTree
[resolved] How to hide Option Tree Settings and Documentation Menu (6 posts)

  1. saqibsarwar
    Member
    Posted 1 year ago #

    Hi,

    Please checkout this image : http://screencast.com/t/gQSNsQ92MmTX

    I have used the following code in functions.php

    add_filter( 'ot_show_pages', '__return_false' );

    But, I am unable to hide Option Tree Settings and Documentation Menu.

    Please Guide me in this regard.

    http://wordpress.org/extend/plugins/option-tree/

  2. Aurélien Denis
    Member
    Posted 1 year ago #

    +1

  3. openboxstudios
    Member
    Posted 1 year ago #

    This is working for me...

    // Remove Option Tree Settings Menu
    
    function remove_ot_menu () {
    
    	remove_menu_page( 'ot-settings' );
    
    }
    add_action( 'admin_menu', 'remove_ot_menu' );
  4. saqibsarwar
    Member
    Posted 1 year ago #

    Thanks @openboxstudios

    Its works for me too

    Regards

  5. Aurélien Denis
    Member
    Posted 1 year ago #

    For me too! :)

  6. CapitalH
    Member
    Posted 1 year ago #

    I knew about this code, but could not succeed, and just now realized that I need to add the code pasted above after I've included theme-options.php and not before.

    And now I have just added import/export options right into my theme options tabs and Option Tree is on theme mode.

    Thanks guys for enlightening me :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.