bp_admin_repair_blog_records()
Recalculate user-to-blog relationships and useful blog meta data.
Description
Return
(array)
Source
File: bp-core/admin/bp-core-admin-tools.php
function bp_admin_repair_blog_records() { // Description of this tool, displayed to the user. $statement = __( 'Repopulating Blogs records… %s', 'buddyboss' ); // Default to failure text. $result = __( 'Failed!', 'buddyboss' ); // Default to unrepaired. $repair = false; // Run function if blogs component is active. if ( bp_is_active( 'blogs' ) ) { $repair = bp_blogs_record_existing_blogs(); } // Setup success/fail messaging. if ( true === $repair ) { $result = __( 'Complete!', 'buddyboss' ); } // All done! return array( 0, sprintf( $statement, $result ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.1.0 | Introduced. |
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.