_wp_dashboard_control_callback()WP 2.7.0

Outputs controls for the current dashboard widget.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 2.7.0 Introduced.

_wp_dashboard_control_callback() code WP 6.6.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( __( 'Save Changes' ) );
	echo '</form>';
}