bb_title_rss
The BuddyPress bb title rss hook.
Description
Parameters (2)
- 0. $title (unknown)
- The title.
- 1. $feed (unknown)
- The feed.
Usage
- To run the hook, copy the example below.
- $title = apply_filters( 'bb_title_rss', $title, $feed );
- if ( !empty( $title ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bb_title_rss callback
- function filter_bb_title_rss( $title, $feed ) {
- // make filter magic happen here...
- return $title;
- };
- // add the filter
- add_filter( 'bb_title_rss', 'filter_bb_title_rss', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bb_title_rss', 'filter_bb_title_rss', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /bp-forums/bbpress/rss.php
- $title = apply_filters( 'bb_title_rss', $title, $feed );