first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
// ------------------------------------
// DISMISS NOTICES
// ------------------------------------
jQuery(document).ready(function($) {
$('.notice-dismiss,.notice-dismiss-alt', '.wpcf7cf-admin-notice').click(function () {
wpcf7cf_dismiss_notice(
$(this).closest('.wpcf7cf-admin-notice').data('noticeId')
);
});
function wpcf7cf_dismiss_notice(noticeId) {
if (noticeId === '') {
$('input[name="wpcf7cf_options[notice_dismissed]"]').val('true');
}
$.post(ajaxurl, { action:'wpcf7cf_dismiss_notice', noticeId:noticeId }, function(response) {
// nothing to do. dismiss_notice option should be set to TRUE server side by now.
});
}
});