Deactivate Google Maps with PHP

Home Forums Calendar Products Events Calendar PRO Deactivate Google Maps with PHP

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1580361
    Justin
    Participant

    Hi there,
    do you have a code snippet for deactivating Google Maps API with php?
    I have already tried to put these in my functions.php without any effect :
    wp_dequeue_script( ‘tribe_events_google_maps_api’ );
    wp_dequeue_script( ‘tribe_events_embedded_map’ );
    wp_dequeue_script( ‘tribe-gmaps’ );

    Thanks in advance

    #1581327

    Hi Justin,

    Thanks so much for reaching out!

    You can try adding the following code to your theme’s functions.php file:

    add_action( 'wp_enqueue_scripts', 'my_deregister_javascript', 100 );
    function my_deregister_javascript() {
    wp_deregister_script( 'tribe-gmaps' );
    }

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1597157
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Deactivate Google Maps with PHP’ is closed to new replies.