Commit 68a4c915 by rajshah

feat: download resource count fix v2.0

parent f62d9cb5
......@@ -348,9 +348,9 @@ jQuery(document).ready(function ($) {
const resourceId = $(this).data("resource-id");
const downloadUrl = $(this).attr("href");
console.log("Resource ID:", resourceId);
console.log("AJAX URL:", download_resource_object.ajaxurl);
$.ajax({
url: download_resource_object.ajax_url,
url: download_resource_object.ajaxurl,
type: "POST",
data: {
action: "increment_download_count",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment