jQuery("body").on("click", '#personal-tutor-welcome-notice .notice-dismiss', function (event) {
    event.preventDefault();

    jQuery.ajax({
      type: 'POST',
      url: ajaxurl,
      data: {
          action: 'personal_tutor_dismissed_notice',
          nonce: personalTutorNotice.nonce,
      },
      success: function () {
          // Remove the notice on success
          $('.notice[data-notice="example"]').remove();
      }
    });
  }
)