rcp_hide_new_topic_form

The Restrict Content Pro - bbPress rcp hide new topic form function.

Description

rcp_hide_new_topic_form( $can_access ); 

Parameters (1)

0. $can_access
The can access.

Usage

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

Defined (1)

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

/includes/topic-functions.php  
  1. function rcp_hide_new_topic_form( $can_access ) { 
  2. global $user_ID; 
  3.  
  4. if ( ! rcp_bbp_can_access_forum( bbp_get_forum_id() ) ) { 
  5. return false; 
  6. return $can_access;