Function: wp_dashboard_cached_rss_widget

wp_dashboard_cached_rss_widget( string $widget_id, callable $callback, array $check_urls )

Checks to see if all of the feed url in $check_urls are cached.

Shortcut: wdcrw

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.

If $check_urls is empty, look for the rss feed url found in the dashboard widget options of $widget_id. If cached, call $callback, a function that echoes out output for this widget. If not cache, echo a "Loading..." stub which is later replaced by Ajax call (see top of /wp-admin/index.php)


Name Type(s) Default Value Description
$widget_id string
$callback callable
$check_urls array array()

RSS feeds



False on failure. True on success.

WordPress Developer Newsletter

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