Quantcast
Channel: User janh - WordPress Development Stack Exchange
Viewing all articles
Browse latest Browse all 40

Comment by janh on How to implement AJAX within a class storing shortcode atts as class variables

$
0
0
I guess you have add_shortcode somewhere? The problem is likely that your AJAX request is a completely different request from the request to the post/page where your shortcode got interpreted in the content, so what you've evaluated in the shortcode hasn't happened in the AJAX request.

Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>