bbp_walker_dropdown_post_title

The bbPress bbp walker dropdown post title hook.

Description

apply_filters( 'bbp_walker_dropdown_post_title', (unknown) $object_post_title, (unknown) $output, (unknown) $object, (unknown) $depth, (unknown) $args ); 

Parameters (5)

0. $object_post_title (unknown)
The object post title.
1. $output (unknown)
The output.
2. $object (unknown)
The object.
3. $depth (unknown)
The depth.
4. $args (unknown)
The args.

Usage

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

Defined (1)

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

/includes/common/classes.php  
  1. $title = apply_filters( 'bbp_walker_dropdown_post_title', $object->post_title, $output, $object, $depth, $args );