Add CSS minification, AJAX settings, and modern admin styling

This commit is contained in:
Marcus Quinn
2025-03-13 00:47:22 +00:00
parent 77cee1844a
commit b7a1a2889f
3 changed files with 11 additions and 3 deletions

View File

@ -2,11 +2,11 @@ jQuery(document).ready(function($) {
$('.wpa-superstar-toggle input').on('change', function() {
var option = $(this).attr('name');
var value = $(this).is(':checked') ? 1 : 0;
$.post(ajaxurl, {
$.post(wpaSuperstar.ajaxurl, {
action: 'wpa_superstar_update_option',
option: option,
value: value,
nonce: '<?php echo wp_create_nonce( "wpa-superstar-nonce" ); ?>'
nonce: wpaSuperstar.nonce
}, function(response) {
console.log(response);
});