bp_core_render_email_template

Filter template used to display Email posts.

Description

apply_filters( 'bp_core_render_email_template', (bool) $bp_locate_template, (unknown) $template ); 

Parameters (2)

0. $bp_locate_template (bool) => bp_locate_template( bp_email_get_template( get_queried_object() ), false )
The bp locate template.
1. $template (unknown)
The template.

Usage

To run the hook, copy the example below.
  1. $bp_locate_template = apply_filters( 'bp_core_render_email_template', $bp_locate_template, $template ); 
  2.  
  3. if ( !empty( $bp_locate_template ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_core_render_email_template callback 
  2. function filter_bp_core_render_email_template( $bp_locate_template, $template ) { 
  3. // make filter magic happen here... 
  4. return $bp_locate_template
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_core_render_email_template', 'filter_bp_core_render_email_template', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_core_render_email_template', 'filter_bp_core_render_email_template', 10, 2 ); 

Defined (1)

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

/bp-core/bp-core-filters.php  
  1. $email_template = apply_filters( 'bp_core_render_email_template',