bp_dtheme_messages_template_loader

Load messages template loop when searched on the private message page.

Description

(string) bp_dtheme_messages_template_loader(); 

Returns (string)

Prints template loop for the Messages component


Usage

  1. if ( !function_exists( 'bp_dtheme_messages_template_loader' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-themes/bp-default/_inc/ajax.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_dtheme_messages_template_loader(); 
  7.  

Defined (1)

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

/bp-themes/bp-default/_inc/ajax.php  
  1. function bp_dtheme_messages_template_loader() { 
  2. locate_template( array( 'members/single/messages/messages-loop.php' ), true ); 
  3. exit;