I saw on the blog how to add a custom dashboard widget:
https://premium.wpmudev.org/blog/adding-custom-widgets-to-the-wordpress-admin-dashboard/
I used the code and and it adds it to the left column, how could I modify this to display on the right column instead?
Do I need to add 'side' in there somewhere? Here is the code I used:
<?php
function register_my_dashboard_widget() {
global $wp_meta_boxes;
wp_add_dashboard_widget(
'my_dashboard_widget',
'Custom Help Widget',
'my_dashboard_widget_display'
);
$dashboard = $wp_meta_boxes['dashboard']['normal']['core'];
$my_widget = array( 'my_dashboard_widget' => $dashboard['my_dashboard_widget'] );
unset( $dashboard['my_dashboard_widget'] );
$sorted_dashboard = array_merge( $my_widget, $dashboard );
$wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;
}
add_action( 'wp_dashboard_setup', 'register_my_dashboard_widget' );
function my_dashboard_widget_display() {
?>
<p>
We can put what ever we need in here.
</p>
<?php
}
?>
Thanks!!