Function: wp_widget_rss_process

wp_widget_rss_process( array $widget_rss, boolean $check_feed )

Process RSS feed widget data and optionally retrieve feed items.

Shortcut: wwrp

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

The feed widget can not have more than 20 items or it will reset back to the default, which is 10.

The resulting array has the feed title, feed url, feed link (from channel), feed items, error (if any), and whether to show summary, author, and date. All respectively in the order of the array elements.


Name Type(s) Default Value Description
$widget_rss array

RSS widget feed data. Expects unescaped data.

$check_feed boolean true

Optional, default is true. Whether to check feed for errors.



WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.