jQuery Ajax

        var object_id = $(this).attr('id'),
            ajax_url = '<?php echo admin_url('admin-ajax.php'); ?>';

$.ajax({
            url: ajax_url,
            type: 'POST',
            data: {
                action : '',
                am2_payload: am2_payload
            },
            success: function (response) {
               

            }
        });

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.