WordPress at Your Fingertips
function is not described

_wp_dashboard_control_callback() WP 2.7.0

Outputs controls for the current dashboard widget.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


null. Nothing.


_wp_dashboard_control_callback( $dashboard, $meta_box );
$dashboard(mixed) (required)
$meta_box(array) (required)


Since 2.7.0 Introduced.

Code of _wp_dashboard_control_callback() WP 5.8.2

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>';