Skip to:
Content

BuddyPress.org

Changeset 13869


Ignore:
Timestamp:
05/23/2024 05:42:06 AM (10 months ago)
Author:
imath
Message:

Add an help tab to explain BP Repair Tools

Props emaralive

Fixes #9161

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-functions.php

    r13868 r13869  
    834834            );
    835835            break;
     836
     837        case 'tools_page_bp-tools':
     838            // Help tab.
     839            $screen->add_help_tab(
     840                array(
     841                    'id'      => 'bp-tools-repair-overview',
     842                    'title'   => __( 'Overview', 'buddypress' ),
     843                    'content' => bp_core_add_contextual_help_content( 'bp-tools-repair-overview' ),
     844                )
     845            );
     846
     847            $documentation_link = sprintf(
     848                '<a href="%1$s">%2$s</a>',
     849                esc_url( 'https://github.com/buddypress/buddypress/blob/master/docs/user/administration/tools/repair.md' ),
     850                esc_html__( 'Using repair tools', 'buddypress' )
     851            );
     852            break;
    836853    }
    837854
     
    856873add_action( 'load-users_page_bp-profile-setup', 'bp_core_add_contextual_help' );
    857874add_action( 'bp_admin_load_bp_member_type', 'bp_core_add_contextual_help' );
     875add_action( 'admin_head-tools_page_bp-tools', 'bp_core_add_contextual_help' );
    858876
    859877/**
     
    902920                '<code>{{ }}</code>'
    903921            );
     922            break;
     923
     924        case 'bp-tools-repair-overview':
     925            $retval = __( 'This is the administration screen to help you perform an assortment of repair tasks when your BuddyPress relationships are out of sync or conduct other bulk operations.', 'buddypress' );
    904926            break;
    905927
Note: See TracChangeset for help on using the changeset viewer.