[ Index ]

WordPress Cross Reference

title

Body

[close]

/wp-admin/includes/ -> dashboard.php (summary)

WordPress Dashboard Widget Administration Screen API

File Size: 1174 lines (43 kb)
Included or required: 5 times
Referenced: 0 times
Includes or requires: 0 files

Defines 25 functions

  wp_dashboard_setup()
  wp_add_dashboard_widget()
  _wp_dashboard_control_callback()
  wp_dashboard()
  wp_dashboard_right_now()
  wp_network_dashboard_right_now()
  wp_dashboard_quick_press()
  wp_dashboard_recent_drafts()
  _wp_dashboard_recent_comments_row()
  wp_dashboard_site_activity()
  wp_dashboard_recent_posts()
  wp_dashboard_recent_comments()
  wp_dashboard_rss_output()
  wp_dashboard_cached_rss_widget()
  wp_dashboard_trigger_widget_control()
  wp_dashboard_rss_control()
  wp_dashboard_primary()
  wp_dashboard_primary_output()
  wp_dashboard_plugins_output()
  wp_dashboard_quota()
  wp_dashboard_browser_nag()
  dashboard_browser_nag_class()
  wp_check_browser_version()
  wp_dashboard_empty()
  wp_welcome_panel()

Functions
Functions that are not part of a class:

wp_dashboard_setup()   X-Ref
Registers dashboard widgets.

Handles POST data, sets up filters.


wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_callback = null, $callback_args = null )   X-Ref
No description

_wp_dashboard_control_callback( $dashboard, $meta_box )   X-Ref
No description

wp_dashboard()   X-Ref
Displays the dashboard.


wp_dashboard_right_now()   X-Ref
Dashboard widget that displays some basic stats about the site.

Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.


wp_network_dashboard_right_now()   X-Ref
No description

wp_dashboard_quick_press( $error_msg = false )   X-Ref
The Quick Draft widget display and creation of drafts.

param: string $error_msg Optional. Error message. Default false.

wp_dashboard_recent_drafts( $drafts = false )   X-Ref
Show recent drafts of the user on the dashboard.


_wp_dashboard_recent_comments_row( &$comment, $show_date = true )   X-Ref
No description

wp_dashboard_site_activity()   X-Ref
Callback function for Activity widget.


wp_dashboard_recent_posts( $args )   X-Ref
Generates Publishing Soon and Recently Published sections.

param: array $args {
return: bool False if no posts were found. True otherwise.

wp_dashboard_recent_comments( $total_items = 5 )   X-Ref
Show Comments section.

param: int $total_items Optional. Number of comments to query. Default 5.
return: bool False if no comments were found. True otherwise.

wp_dashboard_rss_output( $widget_id )   X-Ref
Display generic dashboard RSS widget feed.

param: string $widget_id

wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array()   X-Ref
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)

param: string $widget_id
param: callback $callback
param: array $check_urls RSS feeds
return: bool False on failure. True on success.

wp_dashboard_trigger_widget_control( $widget_control_id = false )   X-Ref
Calls widget control callback.

param: int $widget_control_id Registered Widget ID.

wp_dashboard_rss_control( $widget_id, $form_inputs = array()   X-Ref
The RSS dashboard widget control.

Sets up $args to be used as input to wp_widget_rss_form(). Handles POST data
from RSS-type widgets.

param: string $widget_id
param: array $form_inputs

wp_dashboard_primary()   X-Ref
WordPress News dashboard widget.


wp_dashboard_primary_output( $widget_id, $feeds )   X-Ref
Display the WordPress news feeds.

param: string $widget_id Widget ID.
param: array  $feeds     Array of RSS feeds.

wp_dashboard_plugins_output( $rss, $args = array()   X-Ref
Display plugins text for the WordPress news widget.


wp_dashboard_quota()   X-Ref
Display file upload quota on dashboard.

Runs on the activity_box_end hook in wp_dashboard_right_now().

return: bool True if not multisite, user can't upload files, or the space check option is disabled.

wp_dashboard_browser_nag()   X-Ref
No description

dashboard_browser_nag_class( $classes )   X-Ref
No description

wp_check_browser_version()   X-Ref
Check if the user needs a browser update

return: array|bool False on failure, array of browser data on success.

wp_dashboard_empty()   X-Ref
Empty function usable by plugins to output empty dashboard widget (to be populated later by JS).


wp_welcome_panel()   X-Ref
Displays a welcome panel to introduce users to WordPress.




Generated: Tue Mar 25 01:41:18 2014 WordPress honlapkészítés: online1.hu