Skip to content
Snippets Groups Projects

Feature/wpdesk notices action

Merged Krzysztof Dyszczyk requested to merge feature/wpdesk-notices-action into master
All threads resolved!
2 files
+ 17
0
Compare changes
  • Side-by-side
  • Inline

Files

+ 16
0
jQuery( document ).on( 'click', '.notice-dismiss', function() {
var notice_name = jQuery(this).closest('div.notice').data('notice-name');
console.log(notice_name);
if ('' !== notice_name) {
jQuery.ajax({
url: ajaxurl,
type: 'post',
data: {
action: 'wpdesk_notice_dismiss',
notice_name: notice_name
},
success: function (response) {
}
});
}
});
Loading