rss2_ns
Action HookDescription
Fires at the end of the RSS root to add namespaces.Hook Information
File Location |
wp-includes/feed-rss2.php
View on GitHub
|
Hook Type | Action |
Line Number | 36 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into rss2_ns
add_action('rss2_ns', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/feed-rss2.php:36
- How this hook is used in WordPress core
<?php
31 /**
32 * Fires at the end of the RSS root to add namespaces.
33 *
34 * @since 2.0.0
35 */
36 do_action( 'rss2_ns' );
37 ?>
38 >
39
40 <channel>
41 <title><?php wp_title_rss(); ?></title>
PHP Documentation
<?php
/**
* Fires at the end of the RSS root to add namespaces.
*
* @since 2.0.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/feed-rss2.php
Related Hooks
Related hooks will be displayed here in future updates.