You might have to add:
global $wpgeo_dashboard;
before you try to remove filter.
Hi Ben,
Thanks for that. I added that line before remove_filter but it doesn’t seem to have any effect.
Have just tested and it needs to be done like this:
function my_admin_init() {
global $wpgeo_dashboard;
remove_action( 'wp_dashboard_setup', array( $wpgeo_dashboard, 'register_widget' ) );
}
add_action( 'admin_init', 'my_admin_init', '20' );
Yes, this works.
Many thanks, Ben.