awpcp-render-listing-item

The BuddyPress Global Search awpcp render listing item hook.

Description

apply_filters( 'awpcp-render-listing-item', (unknown) $rendered_listing, (unknown) $i_1, (unknown) $template_type ); 

Parameters (3)

0. $rendered_listing (unknown)
The rendered listing.
1. $i_1 (unknown)
The 1.
2. $template_type (unknown)
The template type.

Usage

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

Defined (1)

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

/includes/plugins/awpcp/class.BBoss_Global_Search_AWPCP.php  
  1. $rendered_listing = apply_filters( 'awpcp-render-listing-item', $rendered_listing, $i + 1, $template_type );