// source --> https://voltmax.lu/wp-content/cache/autoptimize/js/autoptimize_single_f04d40f860686501ea7f7de8896ecbc6.js?ver=5.5.71 
function wpda_rest_api(path,data,callbackOk,callbackError,method="POST"){jQuery.ajax({url:wpApiSettings.root+wpdaApiSettings.path+"/"+path,method:method,beforeSend:function(xhr){xhr.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce);},data:data}).done(function(response){if(callbackOk!==undefined){callbackOk(response)}else{console.error("Missing API callback. Server response:")
console.error(response)}}).fail(function(response){if(callbackError!==undefined){callbackError(response)}else{console.error("Missing API callback. Server response:")
console.error(response)}})};