bbp_admin_repair_forum_visibility()
Repair the private and hidden forums
Description Description
Return Return
(array) An array of the status code and the message
Source Source
File: includes/admin/tools/repair.php
function bbp_admin_repair_forum_visibility() {
$statement = esc_html__( 'Recalculating forum visibility… %s', 'bbpress' );
// Bail if queries returned errors
if ( ! bbp_repair_forum_visibility() ) {
return array( 2, sprintf( $statement, esc_html__( 'Failed!', 'bbpress' ) ) );
// Complete results
} else {
return array( 0, sprintf( $statement, esc_html__( 'Complete!', 'bbpress' ) ) );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |