bbp_title
The bbPress bbp title hook.
Description
Parameters (3)
- 0. $new_title (unknown)
- The new title.
- 1. $sep (unknown)
- The sep.
- 2. $seplocation (unknown)
- The seplocation.
Usage
- To run the hook, copy the example below.
- $new_title = apply_filters( 'bbp_title', $new_title, $sep, $seplocation );
- if ( !empty( $new_title ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bbp_title callback
- function filter_bbp_title( $new_title, $sep, $seplocation ) {
- // make filter magic happen here...
- return $new_title;
- };
- // add the filter
- add_filter( 'bbp_title', 'filter_bbp_title', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bbp_title', 'filter_bbp_title', 10, 3 );
Defined (1)
The filter is defined in the following location(s).
- /includes/common/template.php
- return apply_filters( 'bbp_title', $new_title, $sep, $seplocation );