bp_moderation_author_details_for_<item_type>

The BuddyPress Moderation bp moderation author details for item type hook.

Description

apply_filters( 'bp_moderation_author_details_for_<item_type>', (unknown) $details, (unknown) $content ); 

Parameters (2)

0. $details (unknown)
The details.
1. $content (unknown)
The content.

Usage

To run the hook, copy the example below.
  1. $details = apply_filters( 'bp_moderation_author_details_for_{$item_type}', $details, $content ); 
  2.  
  3. if ( !empty( $details ) ) { 
  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_author_details_for_<item_type> callback 
  2. function filter_bp_moderation_author_details_for_item_type( $details, $content ) { 
  3. // make filter magic happen here... 
  4. return $details
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "bp_moderation_author_details_for_{$item_type}", 'filter_bp_moderation_author_details_for_item_type', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "bp_moderation_author_details_for_{$item_type}", 'filter_bp_moderation_author_details_for_item_type', 10, 2 ); 

Defined (1)

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

/classes/bpModBackend.php  
  1. $details = apply_filters("bp_moderation_author_details_for_$content->item_type", $details, $content);