This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
_wp_dashboard_control_callback( mixed $dashboard, array $meta_box )
Outputs controls for the current dashboard widget.
Parameters
- $dashboard
-
(Required)
- $meta_box
-
(Required)
Source
File: wp-admin/includes/dashboard.php
function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
echo '<form method="post" class="dashboard-widget-control-form wp-clearfix">';
wp_dashboard_trigger_widget_control( $meta_box['id'] );
wp_nonce_field( 'edit-dashboard-widget_' . $meta_box['id'], 'dashboard-widget-nonce' );
echo '<input type="hidden" name="widget_id" value="' . esc_attr($meta_box['id']) . '" />';
submit_button( __('Submit') );
echo '</form>';
}
Changelog
Version | Description |
---|---|
WP-2.7.0 | Introduced. |