bp_moderation_link_text

The BuddyPress Moderation bp moderation link text hook.

Description

apply_filters( 'bp_moderation_link_text', (unknown) $text, (unknown) $flagged, (unknown) $type, (unknown) $id, (unknown) $id2 ); 

Parameters (5)

0. $text (unknown)
The text.
1. $flagged (unknown)
The flagged.
2. $type (unknown)
The type.
3. $id (unknown)
The id.
4. $id2 (unknown)
The id2.

Usage

To run the hook, copy the example below.
  1. $text = apply_filters( 'bp_moderation_link_text', $text, $flagged, $type, $id, $id2 ); 
  2.  
  3. if ( !empty( $text ) ) { 
  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_link_text callback 
  2. function filter_bp_moderation_link_text( $text, $flagged, $type, $id, $id2 ) { 
  3. // make filter magic happen here... 
  4. return $text
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_moderation_link_text', 'filter_bp_moderation_link_text', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_moderation_link_text', 'filter_bp_moderation_link_text', 10, 5 ); 

Defined (3)

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

/classes/bpModFrontend.php  
  1. $text = apply_filters('bp_moderation_link_text', $text, $flagged, $type, $id, $id2); 
/classes/bpModActions.php  
  1. $text = apply_filters('bp_moderation_link_text', $text, true, $_REQUEST['type'], $_REQUEST['id'], $_REQUEST['id2']); 
  1. $text = apply_filters('bp_moderation_link_text', $text, false, $_REQUEST['type'], $_REQUEST['id'], $_REQUEST['id2']);