bp_admin_repair_list

Get the array of the repair list.

Description

(array) bp_admin_repair_list(); 

Returns (array)


Usage

  1. if ( !function_exists( 'bp_admin_repair_list' ) ) { 
  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_list(); 
  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_list() { 
  2. $repair_list = array(); 
  3.  
  4. // Members: 
  5. // - member count 
  6. // - last_activity migration (2.0). 
  7. $repair_list[20] = array( 
  8. 'bp-total-member-count',  
  9. __( 'Repair total members count.', buddypress ),  
  10. ); 
  11.  
  12. $repair_list[25] = array( 
  13. 'bp-last-activity',  
  14. __( 'Repair member "last activity" data.', buddypress ),  
  15. ); 
  16.  
  17. // Friends: 
  18. // - user friend count. 
  19. if ( bp_is_active( 'friends' ) ) { 
  20. $repair_list[0] = array( 
  21. 'bp-user-friends',  
  22. __( 'Repair total friends count for each member.', buddypress ),  
  23. ); 
  24.  
  25. // Groups: 
  26. // - user group count. 
  27. if ( bp_is_active( 'groups' ) ) { 
  28. $repair_list[10] = array( 
  29. 'bp-group-count',  
  30. __( 'Repair total groups count for each member.', buddypress ),  
  31. ); 
  32.  
  33. // Blogs: 
  34. // - user blog count. 
  35. if ( bp_is_active( 'blogs' ) ) { 
  36. $repair_list[90] = array( 
  37. 'bp-blog-records',  
  38. __( 'Repopulate site tracking records.', buddypress ),  
  39. ); 
  40.  
  41. // Emails: 
  42. // - reinstall emails. 
  43. $repair_list[100] = array( 
  44. 'bp-reinstall-emails',  
  45. __( 'Reinstall emails (delete and restore from defaults).', buddypress ),  
  46. ); 
  47.  
  48. ksort( $repair_list ); 
  49.  
  50. /** 
  51. * Filters the array of the repair list. 
  52. * @since 2.0.0 
  53. * @param array $repair_list Array of values for the Repair list options. 
  54. */ 
  55. return (array) apply_filters( 'bp_repair_list', $repair_list );