How execute shortcode with javascript
to execute “ShortCode” which server side-> wordpress ->php ,by JavaScript which client side you will need use AJAX! you can use some thing like: 1-in your enqueued .js file : jQuery(document).ready(function($) { $(‘.buttonClass’).on(‘click’, function() { $.ajax({ url: Param.doShortCode, type: ‘POST’, data: { action: ‘handle_ajax_shortcode’, }, success: function() { //do something on success }, error: function() … Read more