bp_moderation_get_link

The BuddyPress Moderation bp moderation get link hook.

Description

apply_filters( 'bp_moderation_get_link', (unknown) $link, (unknown) $type, (unknown) $is_author, (unknown) $id, (unknown) $id2 ); 

Parameters (5)

0. $link (unknown)
The link.
1. $type (unknown)
The type.
2. $is_author (unknown)
The is author.
3. $id (unknown)
The id.
4. $id2 (unknown)
The id2.

Usage

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

Defined (1)

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

/classes/bpModFrontend.php  
  1. return apply_filters('bp_moderation_get_link', $link, $type, $is_author, $id, $id2);