HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /var/www/kevin-demo/wp-content/plugins/adthrive-ads/js/adthrive-ads.js
function load_adthrive_terms(taxonomy) {
  return function (query, callback) {
    jQuery.ajax({
      url: ajaxurl,
      type: 'GET',
      data: {
        action: 'adthrive_terms',
        taxonomy: taxonomy,
        query: query,
      },
      error: function () {
        callback();
      },
      success: callback,
    });
  };
}

jQuery(document).ready(function ($) {
  $('#disabled_tags').selectize({
    preload: true,
    load: load_adthrive_terms('post_tag'),
  });

  $('#disabled_categories').selectize({
    preload: true,
    load: load_adthrive_terms('category'),
  });
});