Buenas,
Peco de atrevido porque de WP ni idea, pero me parece que es un tema de orden, creo que debería ser algo así:
Código PHP:
Ver originalfunction dashboard_widget_left_column_callback()
{
echo __FUNCTION__;
}
function dashboard_widget_right_column_callback()
{
echo __FUNCTION__;
}
function dashboard_add_widget_left_column()
{
wp_add_dashboard_widget(
'dashboard_widget_left_column',
__('Left Column'),
'dashboard_widget_left_column_callback'
);
}
function dashboard_add_widget_right_column()
{
wp_add_dashboard_widget(
'dashboard_widget_right_column',
__('Right Column'),
'dashboard_widget_right_column_callback'
);
global $wp_meta_boxes;
$widget_right_column = $wp_meta_boxes['dashboard']['normal']['core']['dashboard_widget_right_column'];
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_widget_right_column']); $wp_meta_boxes['dashboard']['side']['core']['dashboard_widget_right_column'] = $widget_right_column;
}
function register_widgets()
{
dashboard_add_widget_left_column();
dashboard_add_widget_right_column();
}
add_action('wp_dashboard_setup', 'register_widgets');
Saludos.