WordPress action hook · part of WordPress core
wp_feed_options
A WordPress core action that 17 plugins also fire themselves, running on 78K+ sites between them.
“Fires just before processing the SimplePie feed object.”
How to use wp_feed_options
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'wp_feed_options', function( $feed, $url ) {
// Your code runs here.
}, 10, 2 );Argument names come from Friends's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
17 plugins that fire wp_feed_options
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WP RSS Aggregator40,000+ installs
do_action_ref_array( 'wp_feed_options', array(&$feed, $url) )v4/includes/feed-importing.php:408 -
PowerPress Podcasting plugin by Blubrry20,000+ installs
do_action_ref_array( 'wp_feed_options', array( &$rss, $feed_url ) )powerpressadmin-dashboard.php:35 -
Shapely Companion10,000+ installs
do_action_ref_array( 'wp_feed_options', array( $feed, $this->feeds ) )inc/epsilon-dashboard/class-epsilon-dashboard.php:113 -
Illdy Companion6,000+ installs
do_action_ref_array( 'wp_feed_options', array( $feed, $this->feeds ) )inc/epsilon-dashboard/class-epsilon-dashboard.php:127 -
Friends900+ installs
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) )feed-parsers/class-feed-parser-simplepie.php:218 -
Go Fetch Jobs (for WP Job Manager)600+ installs
do_action_ref_array( 'wp_feed_options', array(&$feed, $url) )includes/class-gofetch-importer.php:1728 -
RSS Via Shortcode for Page & Post200+ installs
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) )rss-via-shortcode.php:99 -
PressForward100+ installs
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) )includes/functions.php:664 -
All-in-one Widget100+ installs
do_action_ref_array( 'wp_feed_options', array( $feed, $feedURL ) )widgets/widget-rssfeed.php:313 -
Amazon Product Feeder40+ installs
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) )amazon-product-feeder.php:160 -
Top Music Charts Widget20+ installs
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) )top-music-charts-widget.php:95 -
Yarns Microsub Server10+ installs
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) )lib/parse-this/includes/class-parse-this.php:186 -
JS Widgets10+ installs
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) )core-adapter-widgets/rss/class.php:231 -
Bebop10+ installs
do_action_ref_array( 'wp_feed_options', array( $feed, $feed_url ) )extensions/rss/import.php:73 -
Social Glutton10+ installs
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) )socialglutton.php:268 -
feed-modify-on-your-choice10+ installs
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) )feedfile/feed.php:541 -
BuddyStream10+ installs
do_action_ref_array( 'wp_feed_options', array(&$feed, $importUrl) )extensions/youtube/import.php:58
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.