WordPress.org

Ready to get started?Download WordPress

Forums

WP Geo
[resolved] Remove WP Geo dashboard widget (5 posts)

  1. VentureMaker
    Member
    Posted 1 year ago #

    Hiya,

    Any idea about the subject?
    For some reason this solution http://snipplr.com/view/50417/ doesn't work...

    Thanks.

    http://wordpress.org/extend/plugins/wp-geo/

  2. Ben Huson
    Member
    Plugin Author

    Posted 1 year ago #

    You might have to add:

    global $wpgeo_dashboard;

    before you try to remove filter.

  3. VentureMaker
    Member
    Posted 1 year ago #

    Hi Ben,

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

  4. Ben Huson
    Member
    Plugin Author

    Posted 1 year ago #

    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' );
  5. VentureMaker
    Member
    Posted 1 year ago #

    Yes, this works.
    Many thanks, Ben.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic