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:

functions.php
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.

  1. WP RSS Aggregator icon WP RSS Aggregator40,000+ installs do_action_ref_array( 'wp_feed_options', array(&$feed, $url) ) v4/includes/feed-importing.php:408
  2. PowerPress Podcasting plugin by Blubrry icon PowerPress Podcasting plugin by Blubrry20,000+ installs do_action_ref_array( 'wp_feed_options', array( &$rss, $feed_url ) ) powerpressadmin-dashboard.php:35
  3. Shapely Companion icon Shapely Companion10,000+ installs do_action_ref_array( 'wp_feed_options', array( $feed, $this->feeds ) ) inc/epsilon-dashboard/class-epsilon-dashboard.php:113
  4. Illdy Companion icon Illdy Companion6,000+ installs do_action_ref_array( 'wp_feed_options', array( $feed, $this->feeds ) ) inc/epsilon-dashboard/class-epsilon-dashboard.php:127
  5. Friends icon Friends900+ installs do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ) feed-parsers/class-feed-parser-simplepie.php:218
  6. Go Fetch Jobs (for WP Job Manager) icon 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
  7. RSS Via Shortcode for Page & Post icon RSS Via Shortcode for Page & Post200+ installs do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ) rss-via-shortcode.php:99
  8. PressForward icon PressForward100+ installs do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ) includes/functions.php:664
  9. All-in-one Widget icon All-in-one Widget100+ installs do_action_ref_array( 'wp_feed_options', array( $feed, $feedURL ) ) widgets/widget-rssfeed.php:313
  10. Amazon Product Feeder icon Amazon Product Feeder40+ installs do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ) amazon-product-feeder.php:160
  11. Top Music Charts Widget icon Top Music Charts Widget20+ installs do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ) top-music-charts-widget.php:95
  12. Yarns Microsub Server icon Yarns Microsub Server10+ installs do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ) lib/parse-this/includes/class-parse-this.php:186
  13. JS Widgets icon JS Widgets10+ installs do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ) core-adapter-widgets/rss/class.php:231
  14. Bebop icon Bebop10+ installs do_action_ref_array( 'wp_feed_options', array( $feed, $feed_url ) ) extensions/rss/import.php:73
  15. Social Glutton icon Social Glutton10+ installs do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ) socialglutton.php:268
  16. feed-modify-on-your-choice icon feed-modify-on-your-choice10+ installs do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ) feedfile/feed.php:541
  17. BuddyStream icon 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.