wpseek.com
A WordPress-centric search engine for devs and theme authors



_wp_dashboard_control_callback › WordPress Function

Since2.7.0
Deprecatedn/a
_wp_dashboard_control_callback ( $dashboard, $meta_box )
Access:
  • private
Parameters: (2)
  • (mixed) $dashboard
    Required: Yes
  • (array) $meta_box
    Required: Yes
Defined at:
Codex:

Outputs controls for the current dashboard widget.



Source

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