Remove dashboard message about geolocation

Home Forums Calendar Products Events Calendar PRO Remove dashboard message about geolocation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1453820
    Joakim
    Participant

    I need to get rid of the message in the dashboard that says: “You have venues for which we don’t have Geolocation information. Click here to generate it.”

    We’re not using that information at all since all events are happening at the same place. Also, all events and related information in my theme are fetched from The Events Calendar in the backend (not using any of the templates built into the plugin).

    All events are fetched from Facebook with Events Aggregator, so generating Geolocation information each time there’s been an import would be very tiresome.

    #1455208
    Patricia
    Member

    Hey Joakim,

    Thank you for reaching out to us!

    To completely remove the Geolocation notice, please add the following snippet in a custom plugin or in your theme’s functions.php file:

    add_action( 'admin_notices', 'ph_remove_geoloc_notice', 1 );
    function ph_remove_geoloc_notice() {
        if ( ! class_exists( 'Tribe__Events__Pro__Geo_Loc' ) ) {
            return false;
        }
    
        $geoloc = Tribe__Events__Pro__Geo_Loc::instance();
    
        remove_action( 'admin_notices', array(
            $geoloc,
            'show_offer_to_fix_notice'
        ) );
    }

    I hope this helps! If you have any other questions at all please feel free to let me know and I’d be happy to help as best I can!

    Cheers,

    Patricia

    #1455270
    Joakim
    Participant

    This reply is private.

    #1455740
    Patricia
    Member

    Hi Joakim.

    You are welcome 🙂 If you need an assistance again or have other concerns, please feel free to open up a new thread, we’ll be more than happy to help you!

    Cheers,

    Patricia

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove dashboard message about geolocation’ is closed to new replies.