bbp_admin_repair_forum_visibility()
Recaches the private and hidden forums
Description
Return
(array) An array of the status code and the message
Source
File: bp-forums/admin/tools.php
function bbp_admin_repair_forum_visibility() {
$statement = __( 'Recalculating forum visibility … %s', 'buddyboss' );
// Bail if queries returned errors
if ( ! bbp_repair_forum_visibility() ) {
return array( 2, sprintf( $statement, __( 'Failed!', 'buddyboss' ) ) );
// Complete results
} else {
return array( 0, sprintf( $statement, __( 'Complete!', 'buddyboss' ) ) );
}
}
Changelog
| Version | Description |
|---|---|
| bbPress (r4104) | 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.