rcp_filter_replies

The Restrict Content Pro - bbPress rcp filter replies function.

Description

rcp_filter_replies( $content, $reply_id ); 

Parameters (2)

0. $content
The content.
1. $reply_id
The reply id.

Usage

  1. if ( !function_exists( 'rcp_filter_replies' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'restrict-content-pro-bbpress/includes/reply-functions.php'; 
  3.  
  4. // The content. 
  5. $content = null; 
  6.  
  7. // The reply id. 
  8. $reply_id = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = rcp_filter_replies($content, $reply_id); 
  12.  

Defined (1)

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

/includes/reply-functions.php  
  1. function rcp_filter_replies( $content, $reply_id ) { 
  2.  
  3. if ( ! rcp_bbp_can_access_topic( bbp_get_reply_topic_id() ) ) { 
  4. return __( 'You must be a premium user to view this content', 'rcp_bbpress' ); 
  5.  
  6. return $content;