Get returned variable from a function to add_shortcode function
You can’t put AJAX into the callback for a shortcode. It doesn’t make any sense to. If you’re making an AJAX request then you’re making it on the front-end and the shortcode has already rendered. So anything you do with the response to the AJAX request needs to occur on the front-end. So what you … Read more