• Resolved sanderrrrr

    (@sanderrrrr)


    Hello,

    it seems there is an inline code loaded in every page. Can we disable/dequeue this?

    <script>
    window.wc_ga_pro = {};
    
    window.wc_ga_pro.ajax_url = 'https://goedeshampoo.development.bladewp.com/wp-admin/admin-ajax.php';
    
    window.wc_ga_pro.available_gateways = {"mollie_wc_gateway_ideal":"iDEAL","paypal":"PayPal","mollie_wc_gateway_bancontact":"Bancontact","mollie_wc_gateway_banktransfer":"Overboeking","mollie_wc_gateway_creditcard":"Creditcard (+1.5%)","mollie_wc_gateway_applepay":"Apple Pay","mollie_wc_gateway_belfius":"Belfius Direct Net"};
    
    // interpolate json by replacing placeholders with variables
    window.wc_ga_pro.interpolate_json = function( object, variables ) {
    
    	if ( ! variables ) {
    		return object;
    	}
    
    	var j = JSON.stringify( object );
    
    	for ( var k in variables ) {
    		j = j.split( '{$' + k + '}' ).join( variables[ k ] );
    	}
    
    	return JSON.parse( j );
    };
    
    // return the title for a payment gateway
    window.wc_ga_pro.get_payment_method_title = function( payment_method ) {
    	return window.wc_ga_pro.available_gateways[ payment_method ] || payment_method;
    };
    
    // check if an email is valid
    window.wc_ga_pro.is_valid_email = function( email ) {
      return /[^\s@]+@[^\s@]+\.[^\s@]+/.test( email );
    };
    
    </script>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable inline code’ is closed to new replies.