wp_dashboard_cached_rss_widget


wp_dashboard_cached_rss_widget ( $widget_id, $callback, $check_urls = array() )

Parameters:
  • (string) $widget_id
  • (callable) $callback
  • (array) $check_urls RSS feeds
Returns:
  • (bool) False on failure. True on success.
Defined at:

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)

Related Functions

wp_add_dashboard_widget, wp_ajax_dashboard_widgets, wp_dashboard_rss_output, wp_dashboard_setup, wp_dashboard_rss_control

Top Google Results

User discussions

wpseek mobile