wp_dashboard_cached_rss_widget

SummerySummery

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

Syntax

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

DescriptionDescription

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)

ParametersParameters

$widget_id

(string) (Required)

$callback

(callable) (Required)

$check_urls

(array) (Optional) RSS feeds

Default value: array()

ReturnReturn

(bool) False on failure. True on success.

SourceSource

File: wp-admin/includes/dashboard.php


			

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top