Docs: Add `wp_add_dashboard_widget()` parameter descriptions.

Props meitar for initial patch.
Fixes #36092.
Built from https://develop.svn.wordpress.org/trunk@36868


git-svn-id: http://core.svn.wordpress.org/trunk@36835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-03-06 12:08:28 +00:00
parent 27e29666a8
commit b80a516549
2 changed files with 9 additions and 6 deletions

View File

@ -130,14 +130,17 @@ function wp_dashboard_setup() {
}
/**
* Adds a new dashboard widget.
*
* @global array $wp_dashboard_control_callbacks
*
* @param string $widget_id
* @param string $widget_name
* @param callable $callback
* @param callable $control_callback
* @param array $callback_args
* @param string $widget_id Widget ID (used in the 'id' attribute for the widget).
* @param string $widget_name Title of the widget.
* @param callable $callback Function that fills the widget with the desired content.
* The function should echo its output.
* @param callable $control_callback Optional. Function that outputs controls for the widget. Default null.
* @param array $callback_args Optional. Data that should be set as the $args property of the widget array
* (which is the second parameter passed to your callback). Default null.
*/
function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_callback = null, $callback_args = null ) {
$screen = get_current_screen();

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta2-36867';
$wp_version = '4.5-beta2-36868';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.