Skip to:
Content

BuddyPress.org

Changeset 516 for trunk/bp-core.php


Ignore:
Timestamp:
11/08/2008 11:59:41 AM (18 years ago)
Author:
apeatling
Message:

Added site admin settings for BuddyPress including ability to turn off admin bar for logged out users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r511 r516  
    4747/* Functions to handle and display the member and blog directory pages */
    4848require_once( 'bp-core/directories/bp-core-directory-members.php' );
     49
     50/* Functions to handle and display BuddyPress administration menus */
     51require_once( 'bp-core/bp-core-admin.php' );
    4952
    5053
    … …  
    203206}
    204207add_action( 'admin_menu', 'bp_core_check_installed' );
     208
     209
     210function bp_core_add_admin_menu() {
     211        global $wpdb, $bp;
     212       
     213        if ( is_site_admin() ) {
     214                /* Add the administration tab under the "Site Admin" tab for site administrators */
     215                add_submenu_page( 'wpmu-admin.php', __("BuddyPress", 'buddypress'), __("BuddyPress", 'buddypress'), 1, "bp_core_admin_settings", "bp_core_admin_settings" );
     216        }
     217}
     218add_action( 'admin_menu', 'bp_core_add_admin_menu' );
     219
    205220
    206221/**
Note: See TracChangeset for help on using the changeset viewer.