rdf_ns
Action HookDescription
Fires at the end of the feed root to add namespaces.Hook Information
File Location |
wp-includes/feed-rdf.php
View on GitHub
|
Hook Type | Action |
Line Number | 29 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into rdf_ns
add_action('rdf_ns', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/feed-rdf.php:29
- How this hook is used in WordPress core
<?php
24 /**
25 * Fires at the end of the feed root to add namespaces.
26 *
27 * @since 2.0.0
28 */
29 do_action( 'rdf_ns' );
30 ?>
31 >
32 <channel rdf:about="<?php bloginfo_rss( 'url' ); ?>">
33 <title><?php wp_title_rss(); ?></title>
34 <link><?php bloginfo_rss( 'url' ); ?></link>
PHP Documentation
<?php
/**
* Fires at the end of the feed root to add namespaces.
*
* @since 2.0.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/feed-rdf.php
Related Hooks
Related hooks will be displayed here in future updates.