WordPress – Ajax request to php variable does not work as expected
I am making an AJAX GET request, but the response I receive is not as expected. The response goes through, but the PHP variable is empty. Here is my jQuery: jQuery(document).ready(function($) { $.ajax({ url: '/wp-admin/admin-ajax.php', method: 'GET', data: { action:…