rss2_head
This action is documented in wp-includes/feed-rss2.php.
Description
Parameters (1)
- 0. $jetpack_enhanced_distribution_feed_id (string) =>
'jetpack_enhanced_distribution_feed_id'
- The jetpack enhanced distribution feed id.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'rss2_head', $jetpack_enhanced_distribution_feed_id );
- The following example is for adding a hook callback.
- // define the rss2_head callback
- function action_rss2_head( $jetpack_enhanced_distribution_feed_id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'rss2_head', 'action_rss2_head', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'rss2_head', 'action_rss2_head', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /modules/enhanced-distribution.php
- add_action( 'rss2_head', 'jetpack_enhanced_distribution_feed_id' );