bbp_reply_admin_links

The bbPress bbp reply admin links hook.

Description

apply_filters( 'bbp_reply_admin_links', (callback) $array, (unknown) $r_id ); 

Parameters (2)

0. $array — Optional. (callback) => array( 'edit' => bbp_get_reply_edit_link ( $r ), 'move' => bbp_get_reply_move_link ( $r ), 'split' => bbp_get_topic_split_link( $r ), 'trash' => bbp_get_reply_trash_link( $r ), 'spam' => bbp_get_reply_spam_link ( $r ), 'reply' => bbp_get_reply_to_link ( $r ) )
The array.
1. $r_id (unknown)
The id.

Usage

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

Defined (1)

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

/includes/replies/template.php  
  1. $r['links'] = apply_filters( 'bbp_reply_admin_links', array(