first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
/* global ajaxurl, storefrontNUX */
( function( wp, $ ) {
'use strict';
if ( ! wp ) {
return;
}
$( function() {
// Dismiss notice
$( document ).on( 'click', '.sf-notice-nux .notice-dismiss', function() {
$.ajax({
type: 'POST',
url: ajaxurl,
data: { nonce: storefrontNUX.nonce, action: 'storefront_dismiss_notice' },
dataType: 'json'
});
});
});
})( window.wp, jQuery );