rcp_filter_topics_list

The Restrict Content Pro - bbPress rcp filter topics list function.

Description

rcp_filter_topics_list( $query ); 

Parameters (1)

0. $query
The query.

Usage

  1. if ( !function_exists( 'rcp_filter_topics_list' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'restrict-content-pro-bbpress/includes/topic-functions.php'; 
  3.  
  4. // The query. 
  5. $query = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = rcp_filter_topics_list($query); 
  9.  

Defined (1)

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

/includes/topic-functions.php  
  1. function rcp_filter_topics_list( $query ) { 
  2.  
  3. global $user_ID; 
  4.  
  5. if ( bbp_is_single_forum() && ! rcp_bbp_can_access_forum( bbp_get_forum_id() ) ) { 
  6.  
  7. $query = array(); // return an empty query 
  8.  
  9.  
  10. return $query;