Skip to main content

benecaster_feed_namespaces

Filter Free Since v1.0.0

Filters the list of namespace handlers registered for the RSS feed. Each handler declares an XML namespace URI and emits the corresponding elements into the feed output. Fires once per feed render, before namespace declarations are written to the XML.

Parameters

Name Type Default Description
$handlers array Array of namespace handler objects

Returns: array

Example

add_filter( 'benecaster_feed_namespaces', function( $handlers ) {
    // Register a custom namespace handler that emits <myns:> tags.
    $handlers[] = new MyPlugin_CustomFeedNamespace();
    return $handlers;
} );

Affects

  • RSS feed XML namespace declarations