Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ben Huson

    (@husobj)

    You might have to add:

    global $wpgeo_dashboard;

    before you try to remove filter.

    Thread Starter VentureMaker

    (@venturemaker)

    Hi Ben,

    Thanks for that. I added that line before remove_filter but it doesn’t seem to have any effect.

    Plugin Author Ben Huson

    (@husobj)

    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' );
    Thread Starter VentureMaker

    (@venturemaker)

    Yes, this works.
    Many thanks, Ben.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove WP Geo dashboard widget’ is closed to new replies.