wp_dashboard_cached_rss_widget
wp_dashboard_cached_rss_widget ( $widget_id, $callback, $check_urls = array(), $args )
Parameters:- (string) widget_id The widget ID.
- (callable) callback The callback function used to display each feed.
- (array) check_urls RSS feeds.
- (mixed) args Optional additional parameters to pass to the callback function.
Returns:- (bool) True on success, false on failure.
Defined at:Change Log: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Checks to see if all of the feed url in $check_urls are cached.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)