- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
1.0 KiB
JavaScript
Executable File
32 lines
1.0 KiB
JavaScript
Executable File
function remove_all_transients(){
|
|
|
|
let form = document.getElementById('remove_all_transients')
|
|
let data = new FormData(form);
|
|
let btn_remove_all_transients = document.getElementById('btn_remove_all_transients');
|
|
let btn_remove_all_transients_loader = document.querySelector('button#btn_remove_all_transients #loader');
|
|
|
|
btn_remove_all_transients.disabled = true;
|
|
btn_remove_all_transients_loader.style.visibility = 'initial';
|
|
jQuery.ajax({
|
|
type: "POST",
|
|
url: ajax_var.url,
|
|
data:
|
|
"action=" +
|
|
ajax_var.action +
|
|
"&nonce=" +
|
|
ajax_var.nonce +
|
|
"&remove=" +
|
|
data.get("remove"),
|
|
success: function (result) {
|
|
result = JSON.parse(result);
|
|
window.location.href = result;
|
|
},
|
|
error: function (jqXHR, textStatus, errorThrown) {
|
|
console.log(jqXHR.responseText);
|
|
},
|
|
done: function (result) {
|
|
console.log("done:");
|
|
},
|
|
});
|
|
|
|
} |