bb_pre_remote_source

The BuddyPress bb pre remote source hook.

Description

apply_filters( 'bb_pre_remote_source', (unknown) $link_from_source, (unknown) $link_to ); 

Parameters (2)

0. $link_from_source (unknown)
The link from source.
1. $link_to (unknown)
The link to.

Usage

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

Defined (1)

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

/bp-forums/bbpress/xmlrpc.php  
  1. $link_from_source = apply_filters( 'bb_pre_remote_source', $link_from_source, $link_to );