bbp_admin_repair_list

Get the array of the repair list.

Description

(array) bbp_admin_repair_list(); 

Returns (array)

Repair list of options


Usage

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

Defined (1)

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

/includes/admin/tools.php  
  1. function bbp_admin_repair_list() { 
  2. $repair_list = array( 
  3. 0 => array( 'bbp-sync-topic-meta', __( 'Recalculate the parent topic for each post', bbpress ), 'bbp_admin_repair_topic_meta' ),  
  4. 5 => array( 'bbp-sync-forum-meta', __( 'Recalculate the parent forum for each post', bbpress ), 'bbp_admin_repair_forum_meta' ),  
  5. 10 => array( 'bbp-sync-forum-visibility', __( 'Recalculate private and hidden forums', bbpress ), 'bbp_admin_repair_forum_visibility' ),  
  6. 15 => array( 'bbp-sync-all-topics-forums', __( 'Recalculate last activity in each topic and forum', bbpress ), 'bbp_admin_repair_freshness' ),  
  7. 20 => array( 'bbp-sync-all-topics-sticky', __( 'Recalculate the sticky relationship of each topic', bbpress ), 'bbp_admin_repair_sticky' ),  
  8. 25 => array( 'bbp-sync-all-reply-positions', __( 'Recalculate the position of each reply', bbpress ), 'bbp_admin_repair_reply_menu_order' ),  
  9. 30 => array( 'bbp-group-forums', __( 'Repair BuddyPress Group Forum relationships', bbpress ), 'bbp_admin_repair_group_forum_relationship' ),  
  10. 35 => array( 'bbp-forum-topics', __( 'Count topics in each forum', bbpress ), 'bbp_admin_repair_forum_topic_count' ),  
  11. 40 => array( 'bbp-forum-replies', __( 'Count replies in each forum', bbpress ), 'bbp_admin_repair_forum_reply_count' ),  
  12. 45 => array( 'bbp-topic-replies', __( 'Count replies in each topic', bbpress ), 'bbp_admin_repair_topic_reply_count' ),  
  13. 50 => array( 'bbp-topic-voices', __( 'Count voices in each topic', bbpress ), 'bbp_admin_repair_topic_voice_count' ),  
  14. 55 => array( 'bbp-topic-hidden-replies', __( 'Count spammed & trashed replies in each topic', bbpress ), 'bbp_admin_repair_topic_hidden_reply_count' ),  
  15. 60 => array( 'bbp-user-topics', __( 'Count topics for each user', bbpress ), 'bbp_admin_repair_user_topic_count' ),  
  16. 65 => array( 'bbp-user-replies', __( 'Count replies for each user', bbpress ), 'bbp_admin_repair_user_reply_count' ),  
  17. 70 => array( 'bbp-user-favorites', __( 'Remove trashed topics from user favorites', bbpress ), 'bbp_admin_repair_user_favorites' ),  
  18. 75 => array( 'bbp-user-topic-subscriptions', __( 'Remove trashed topics from user subscriptions', bbpress ), 'bbp_admin_repair_user_topic_subscriptions' ),  
  19. 80 => array( 'bbp-user-forum-subscriptions', __( 'Remove trashed forums from user subscriptions', bbpress ), 'bbp_admin_repair_user_forum_subscriptions' ),  
  20. 85 => array( 'bbp-user-role-map', __( 'Remap existing users to default forum roles', bbpress ), 'bbp_admin_repair_user_roles' ) 
  21. ); 
  22. ksort( $repair_list ); 
  23.  
  24. return (array) apply_filters( 'bbp_repair_list', $repair_list );