bpbbpst_filter_topic_title

Hooks bbp_head to launch a filter to the_title to change the title.

Description

bpbbpst_filter_topic_title(); 

it does it quite late to avoid filtering the get_the_title() WordPress function that may be used by other plugin hooking wp_head such as jetpack.


Usage

  1. if ( !function_exists( 'bpbbpst_filter_topic_title' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddy-bbpress-support-topic/includes/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bpbbpst_filter_topic_title(); 
  7.  

Defined (1)

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

/includes/functions.php  
  1. function bpbbpst_filter_topic_title() { 
  2. add_filter( 'the_title', 'bpbbpst_change_topic_title', 99, 2 );