bbp_admin_repair_forum_visibility

Recaches the private and hidden forums.

Description

(array) bbp_admin_repair_forum_visibility(); 

Returns (array)

An array of the status code and the message


Usage

  1. if ( !function_exists( 'bbp_admin_repair_forum_visibility' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/admin/tools.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_admin_repair_forum_visibility(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/admin/tools.php  
  1. function bbp_admin_repair_forum_visibility() { 
  2. $statement = __( 'Recalculating forum visibility … %s', bbpress ); 
  3.  
  4. // Bail if queries returned errors 
  5. return array( 2, sprintf( $statement, __( 'Failed!', bbpress ) ) ); 
  6.  
  7. // Complete results 
  8. } else { 
  9. return array( 0, sprintf( $statement, __( 'Complete!', bbpress ) ) );