Quantcast
Channel: User janh - WordPress Development Stack Exchange
Viewing latest article 6
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 latest article 6
Browse Latest Browse All 40

Trending Articles



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