Load an action which is in an url with Jquery
$.load() is used to load content into an element. And you need to send a ping/request to a url, don’t need to use what is returned/responded. So, $.post() or $.get() the the solution for this. $.get(”, ‘wpfpaction=add&postid=350’); Usage With the current post id – $.get(”, ‘wpfpaction=add&postid=<?php the_ID(); ?>’); To dynamically add it from functions.php, you … Read more