bp_core_admin_backpat_page

Generates markup for a fallback top-level BuddyPress menu page, if the site is running a legacy plugin which hasn't been updated.

Description

bp_core_admin_backpat_page(); 

If the site is up to date, this page will never appear.


Usage

  1. if ( !function_exists( 'bp_core_admin_backpat_page' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/admin/bp-core-admin-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_admin_backpat_page(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/admin/bp-core-admin-functions.php  
  1. function bp_core_admin_backpat_page() { 
  2. $url = bp_core_do_network_admin() ? network_admin_url( 'settings.php' ) : admin_url( 'options-general.php' ); 
  3. $settings_url = add_query_arg( 'page', 'bp-components', $url ); ?> 
  4.  
  5. <div class="wrap"> 
  6. <h2><?php _e( 'Why have all my BuddyPress menus disappeared?', buddypress ); ?></h2> 
  7.  
  8. <p><?php _e( "Don't worry! We've moved the BuddyPress options into more convenient and easier to find locations. You're seeing this page because you are running a legacy BuddyPress plugin which has not been updated.", buddypress ); ?></p> 
  9. <p><?php printf( __( 'Components, Pages, Settings, and Forums, have been moved to <a href="%s">Settings > BuddyPress</a>. Profile Fields has been moved into the <a href="%s">Users</a> menu.', buddypress ), esc_url( $settings_url ), bp_get_admin_url( 'users.php?page=bp-profile-setup' ) ); ?></p> 
  10. </div> 
  11.  
  12. <?php