WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Remove WP Geo dashboard widget

[Resolved] Remove WP Geo dashboard widget

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.

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

    Yes, this works.
    Many thanks, Ben.

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