Support

Account

Home Forums ACF PRO Google maps API included multiple times Reply To: Google maps API included multiple times

  • You can try to override the ACF settings for “enqueue_google_maps”=false for it to not load the script in the frontend. Also, I’ve added is_admin() check just to be sure that it only trigger the override on front-end.

    function my_acf_init() {
        if(is_admin()):
            return;
        endif;
        acf_update_setting('enqueue_google_maps', false);
    }
    
    add_action('acf/init', 'my_acf_init');