bp_admin_repair_count_members

Recalculate the total number of active site members.

Description

bp_admin_repair_count_members(); 

Usage

  1. if ( !function_exists( 'bp_admin_repair_count_members' ) ) { 
  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_admin_repair_count_members(); 
  7.  

Defined (1)

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

/bp-core/admin/bp-core-admin-tools.php  
  1. function bp_admin_repair_count_members() { 
  2. $statement = __( 'Counting the number of active members on the site… %s', buddypress ); 
  3. delete_transient( 'bp_active_member_count' ); 
  4. return array( 0, sprintf( $statement, __( 'Complete!', buddypress ) ) );