[wp-forums] SimplePie and WP core
Gavin Pearce
Gavin.Pearce at 3seven9.com
Fri Jun 15 16:58:05 UTC 2012
> There is an action called:
> wp_feed_options that you can hook into which provides $feed & $url
Sorry - should have provided an example, hope this helps:
add_action('wp_feed_options', 'force_feed', 10, 1);
function force_feed($feed) {
$feed->force_feed(true);
}
You can also get the URL at this point if you want to do some checking:
add_action('wp_feed_options', 'force_feed', 10, 2);
function force_feed($feed, $url) {
if ($url == 'something') {
$feed->force_feed(true);
}
}
Gavin.
More information about the wp-forums
mailing list