_bp_forums_reply_exists_posts_where

Private one-time-use function used in conjunction with bp_forums_reply_exists().

Description

(string) _bp_forums_reply_exists_posts_where( (string) $where = '' ); 

Returns (string)

SQL fragment.

Parameters (1)

0. $where — Optional. (string) => ''
SQL fragment.

Usage

  1. if ( !function_exists( '_bp_forums_reply_exists_posts_where' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bp-forums-functions.php'; 
  3.  
  4. // SQL fragment. 
  5. $where = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = _bp_forums_reply_exists_posts_where($where); 
  9.  

Defined (1)

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

/bp-forums/bp-forums-functions.php  
  1. function _bp_forums_reply_exists_posts_where( $where = '' ) { 
  2. return $where . " AND p.post_text = '" .buddypress)->forums->reply_exists_text . "'";