Support » Plugin: WordPress Popular Posts » Ajax post

Viewing 1 replies (of 1 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there,

    There’s no specific reason for that, it’s just the way I like it. You can change it, though, by modifying this line:

    jQuery.post('<?php echo admin_url('admin-ajax.php'); ?>', {action: 'wpp_update', token: '<?php echo $nonce; ?>', id: <?php echo $id; ?>}, function(data){/*alert(data);*/});

    … into:

    jQuery.get('<?php echo admin_url('admin-ajax.php'); ?>', {action: 'wpp_update', token: '<?php echo $nonce; ?>', id: <?php echo $id; ?>}, function(data){/*alert(data);*/});

Viewing 1 replies (of 1 total)
  • The topic ‘Ajax post’ is closed to new replies.