Created
November 2, 2017 11:08
-
-
Save pinalj/dda3a22d9ca77cfbe550aadedf51c3e1 to your computer and use it in GitHub Desktop.
JS file to run the AJAX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready( function() { | |
jQuery( document ).on( 'click', '.my-dismiss-notice .notice-dismiss', function() { | |
var data = { | |
action: 'my_dismiss_notice', | |
}; | |
jQuery.post( notice_params.ajaxurl, data, function() { | |
}); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment