call shortcode in javascript

Question

I want to display a shortcode through jquery after the DOM is loaded:

This is how I call the shortcode: <?php echo do_shortcode('[plugin]'); ?>

Now, my question is how can I call that shortcode inside a jquery function, because my website is based on jquery/ ajax calls?
Thanks!

0
, , agis 3 years 2020-07-18T11:10:59-05:00 0 Answers 48 views 0

Leave an answer

Browse
Browse