bp_admin_repair_last_activity

Repair user last_activity data.

Description

bp_admin_repair_last_activity(); 

Re-runs the migration from usermeta introduced in BP 2.0.


Usage

  1. if ( !function_exists( 'bp_admin_repair_last_activity' ) ) { 
  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_last_activity(); 
  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_last_activity() { 
  2. $statement = __( 'Determining last activity dates for each user… %s', buddypress ); 
  3. return array( 0, sprintf( $statement, __( 'Complete!', buddypress ) ) );