bp_message_thread_total_count

Output a thread's total message count.

Description

bp_message_thread_total_count( (bool) $thread_id = false ); 

Parameters (1)

0. $thread_id — Optional. (bool) => false
ID of the thread. Defaults to current thread ID.

Usage

  1. if ( !function_exists( 'bp_message_thread_total_count' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-messages/bp-messages-template.php'; 
  3.  
  4. // Optional. ID of the thread. Defaults to current thread ID. 
  5. $thread_id = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_message_thread_total_count($thread_id); 
  9.  

Defined (1)

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

/bp-messages/bp-messages-template.php  
  1. function bp_message_thread_total_count( $thread_id = false ) { 
  2. echo bp_get_message_thread_total_count( $thread_id );