How to dequeue script only for front page

Question

What i need add to functions.php?

Plugin code

$this->init_shipping_methods();

                add_action( 'wp_footer', array($this, 'frontFooter'), 75 );

public function frontFooter()
            {
                
    echo '<script async src="https://geowidget.easypack24.net/js/sdk-for-javascript.js"></script>';

            }
0
Kacza 1 month 0 Answers 5 views 0

Leave an answer