Correction: “Export Now” button
Hi @genussselektion,
Thanks for getting in touch. 🙂
While it is possible, it may not be very reliable option because it tends to be hindered by browser security features, and at times, antivirus software may raise concerns about this behavior. However, I will investigate this option and confirm back over the weekend.
In the meantime, if you provide me some background about your automation then I might suggest you a better alternative.
Have a great rest of the day.
Atlas
@genussselektion please use the following code snippet to download the file automatically. The browser might block it initially, if it does then unblock it manually.
Place this code inside themes functions.php
or use any plugin to add this javascript code to your website.
jQuery(document).ready(function() {
jQuery(".updated a").click(function(e) {
e.preventDefault();
var u = jQuery(this).attr("href");
download(u);
});
function download(u) {
var link = document.createElement("a");
link.style.display = "none";
link.href = u;
link.target = "_blank";
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
setTimeout(function() {
jQuery(".updated a")[0].click();
}, 5000);
});
Hope it helps! 🙂