• Resolved Farjad

    (@farjadco)


    Hi

    Dokan plugin load this code in my site :

    <script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?key=54656&ver=3.7.15' id='dokan-maps-js'></script>

    it cause loading problem for me and i want to remove or disable this from loading in my site

    is there any code that i put in functions.php of my theme to stop loading this line in my site ?

Viewing 1 replies (of 1 total)
  • Thread Starter Farjad

    (@farjadco)

    just put this in functions.php :

    function wpdocs_dequeue_script() {
    	wp_dequeue_script(
        'dokan-maps', 'https://maps.googleapis.com/maps/api/js?key=54656&', '', '3.7.15', true
    );
    }
    add_action( 'wp_print_scripts', 'wpdocs_dequeue_script', 100 );
Viewing 1 replies (of 1 total)
  • The topic ‘Disable google maps in dokan’ is closed to new replies.