bp_core_admin_notice_repopulate_blogs_resume

Add notice on the "Tools > BuddyPress" page if more sites need recording.

Description

bp_core_admin_notice_repopulate_blogs_resume(); 

This notice only shows up in the network admin dashboard.


Usage

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

Defined (1)

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

/bp-core/admin/bp-core-admin-tools.php  
  1. function bp_core_admin_notice_repopulate_blogs_resume() { 
  2. $screen = get_current_screen(); 
  3. if ( 'tools_page_bp-tools-network' !== $screen->id ) { 
  4. return; 
  5.  
  6. if ( '' === bp_get_option( '_bp_record_blogs_offset' ) ) { 
  7. return; 
  8.  
  9. echo '<div class="error"><p>' . __( 'It looks like you have more sites to record. Resume recording by checking the "Repopulate site tracking records" option.', buddypress ) . '</p></div>';