Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi. We don’t provide customization assistance via this free forum, but you may be able to utilize the tribe_help_sections filter or remove the tribe_settings_content_tab_help action.

    I can tell you the tab gets added via https://github.com/moderntribe/tribe-common/blob/05c46b4e2e48a52775e3244f8e9da405feec8ddd/src/Tribe/Settings_Manager.php#L277

    I hope this helps.

    Thread Starter Jason Wong

    (@eljkmw)

    None of your suggestions work. I’ve very disappointed that you’ve the answers in hand, and yet you aren’t sharing it openly.

    I’ve tried the following in the theme’s functions.php, and it didn’t work.

    remove_action( 'admin_menu', array( Tribe__Settings_Manager::add_hooks(), 'add_help_admin_menu_item' ), 50 );
    remove_action( 'tribe_settings_content_tab_help', array( Tribe__Settings_Manager::add_hooks(), 'do_help_tab' ) );

    In the end, I’ve to remark ‘tribe-options-help.php’ in both,
    /wp-content/plugins/the-events-calendar/common/src/admin-views
    /wp-content/plugins/the-events-calendar/vendor/tickets/common/src/admin-views

    Even this too didn’t remove the Help tab completely. I’m left with an empty Help tab.

    Thread Starter Jason Wong

    (@eljkmw)

    Please ignore my last message above, and I sincerely apologise for my rudeness.

    After a few more trials, I managed to work out a solution that partially works. It doesn’t remove the Help tab except for its content within the tab. So, it’s funny to find an empty Help tab.

    // Remove Modern Tribe Help tab from Settings page
    function remove_tribe_help_tab() {
        if ( class_exists( 'Tribe__Settings_Manager' ) ) {
            remove_action( 'admin_menu', array( Tribe__Settings_Manager::instance(), 'add_help_admin_menu_item' ), 50 );
            remove_action( 'tribe_settings_content_tab_help', array( Tribe__Settings_Manager::instance(), 'do_help_tab' ) );
        }
    }
    add_action( 'admin_menu', 'remove_tribe_help_tab', 5 );

    I noticed the do_setting_tabs() function within the Tribe__Settings_Manager class is responsible for adding the Help tab. I’m trying to figure out how to just remove the new Tribe__Settings_Tab for Help from this class function.

    Any ideas? Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove Help tab from Settings page in Admin?’ is closed to new replies.