rss2_item

Fires at the end of each RSS2 feed item.

Description

add_action( 'rss2_item', (string) $jetpack_enhanced_distribution_post_id ); 

Parameters (1)

0. $jetpack_enhanced_distribution_post_id (string) => 'jetpack_enhanced_distribution_post_id'
The jetpack enhanced distribution post id.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'rss2_item', $jetpack_enhanced_distribution_post_id ); 
The following example is for adding a hook callback.
  1. // define the rss2_item callback 
  2. function action_rss2_item( $jetpack_enhanced_distribution_post_id ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'rss2_item', 'action_rss2_item', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'rss2_item', 'action_rss2_item', 10, 1 ); 

Defined (1)

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

/modules/enhanced-distribution.php  
  1. add_action( 'rss2_item', 'jetpack_enhanced_distribution_post_id' );