bp_admin_repair_list()
Get the array of the repair list.
Description Description
Return Return
(array)
Source Source
File: bp-core/admin/bp-core-admin-tools.php
function bp_admin_repair_list() { $repair_list = array(); // Members: // - member count // - last_activity migration (2.0). $repair_list[20] = array( 'bp-total-member-count', __( 'Repair total members count.', 'buddypress' ), 'bp_admin_repair_count_members', ); $repair_list[25] = array( 'bp-last-activity', __( 'Repair member "last activity" data.', 'buddypress' ), 'bp_admin_repair_last_activity', ); // Friends: // - user friend count. if ( bp_is_active( 'friends' ) ) { $repair_list[0] = array( 'bp-user-friends', __( 'Repair total friends count for each member.', 'buddypress' ), 'bp_admin_repair_friend_count', ); } // Groups: // - user group count. if ( bp_is_active( 'groups' ) ) { $repair_list[10] = array( 'bp-group-count', __( 'Repair total groups count for each member.', 'buddypress' ), 'bp_admin_repair_group_count', ); } // Blogs: // - user blog count. if ( bp_is_active( 'blogs' ) ) { $repair_list[90] = array( 'bp-blog-records', __( 'Repopulate site tracking records.', 'buddypress' ), 'bp_admin_repair_blog_records', ); } // Emails: // - reinstall emails. $repair_list[100] = array( 'bp-reinstall-emails', __( 'Reinstall emails (delete and restore from defaults).', 'buddypress' ), 'bp_admin_reinstall_emails', ); ksort( $repair_list ); /** * Filters the array of the repair list. * * @since 2.0.0 * * @param array $repair_list Array of values for the Repair list options. */ return (array) apply_filters( 'bp_repair_list', $repair_list ); }