bbp_redirect_to_field

The bbPress bbp redirect to field hook.

Description

apply_filters( 'bbp_redirect_to_field', (unknown) $redirect_field, (unknown) $redirect_to ); 

Parameters (2)

0. $redirect_field (unknown)
The redirect field.
1. $redirect_to (unknown)
The redirect to.

Usage

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

Defined (1)

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

/includes/common/template.php  
  1. echo apply_filters( 'bbp_redirect_to_field', $redirect_field, $redirect_to );