rcp_hide_new_replies_form

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

Description

rcp_hide_new_replies_form( $can_access ); 

Parameters (1)

0. $can_access
The can access.

Usage

  1. if ( !function_exists( 'rcp_hide_new_replies_form' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'restrict-content-pro-bbpress/includes/reply-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_replies_form($can_access); 
  9.  

Defined (1)

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

/includes/reply-functions.php  
  1. function rcp_hide_new_replies_form( $can_access ) { 
  2.  
  3. if ( ! rcp_bbp_can_access_topic( bbp_get_reply_topic_id() ) ) { 
  4. $can_access = false; 
  5.  
  6. return $can_access;