bp_admin_repair_list()
Get the array of the repair list.
Description
Return
(array)
Source
File: bp-core/admin/bp-core-admin-tools.php
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 | 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.' , 'buddyboss' ), 'bp_admin_repair_count_members' , ); $repair_list [25] = array ( 'bp-last-activity' , __( 'Repair member "last activity" data.' , 'buddyboss' ), 'bp_admin_repair_last_activity' , ); // Xprofile: // - default xprofile groups/fields $repair_list [35] = array ( 'bp-xprofile-fields' , __( 'Repair default profile set and fields.' , 'buddyboss' ), 'repair_default_profiles_fields' , ); $repair_list [36] = array ( 'bp-xprofile-wordpress-resync' , __( 'Re-sync BuddyBoss profile fields to WordPress profile fields.' , 'buddyboss' ), 'resync_xprofile_wordpress_fields' , ); $repair_list [37] = array ( 'bp-wordpress-xprofile-resync' , __( 'Re-sync WordPress profile fields to BuddyBoss profile fields.' , 'buddyboss' ), 'resync_wordpress_xprofile_fields' , ); $repair_list [38] = array ( 'bp-wordpress-update-display-name' , __( 'Update display name to selected format in profile settings.' , 'buddyboss' ), 'xprofile_update_display_names' , ); // Connections: // - user friend count. if ( bp_is_active( 'friends' ) ) { $repair_list [0] = array ( 'bp-user-friends' , __( 'Repair total connections count for each member.' , 'buddyboss' ), '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.' , 'buddyboss' ), '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.' , 'buddyboss' ), 'bp_admin_repair_blog_records' , ); } // Emails: // - reinstall emails. $repair_list [100] = array ( 'bp-reinstall-emails' , __( 'Reinstall emails (delete and restore from defaults).' , 'buddyboss' ), 'bp_admin_reinstall_emails' , ); // Check whether member type is enabled. if ( true === bp_member_type_enable_disable() ) { $member_types = bp_get_active_member_types(); $existing_selected = bp_member_type_default_on_registration(); if ( isset( $member_types ) && ! empty ( $member_types ) && '' !== $existing_selected ) { // - Assign default member type. $repair_list [101] = array ( 'bp-assign-member-type' , __( 'Assign members without a profile type to the default profile type (excludes admins).' , 'buddyboss' ), 'bp_admin_assign_member_type' , ); } } ksort( $repair_list ); /** * Filters the array of the repair list. * * @since BuddyPress 2.0.0 * * @param array $repair_list Array of values for the Repair list options. */ return ( array ) apply_filters( 'bp_repair_list' , $repair_list ); } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.