rss_tag_pre
This action is documented in wp-includes/feed-rss2.php.
Description
Parameters (1)
- 0. $atom_comments (string) =>
'atom-comments'
- The atom comments.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'rss_tag_pre', $atom_comments );
- The following example is for adding a hook callback.
- // define the rss_tag_pre callback
- function action_rss_tag_pre( $atom_comments ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'rss_tag_pre', 'action_rss_tag_pre', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'rss_tag_pre', 'action_rss_tag_pre', 10, 1 );
Defined (5)
The action is defined in the following location(s).
- /wp-includes/feed-atom-comments.php
- do_action( 'rss_tag_pre', 'atom-comments' );
- /wp-includes/feed-atom.php
- do_action( 'rss_tag_pre', 'atom' );
- /wp-includes/feed-rdf.php
- do_action( 'rss_tag_pre', 'rdf' );
- /wp-includes/feed-rss2-comments.php
- do_action( 'rss_tag_pre', 'rss2-comments' );
- /wp-includes/feed-rss2.php
- do_action( 'rss_tag_pre', 'rss2' );