When I make an AJAX request in WordPress I do it in two ways, but I'd like to know which one is best.
The two that I know of are:
1º) You put your function in functions, eg:
add_action('wp_ajax_nopriv_my-function','my_function');
add_act...
asked by
01.11.2014 / 21:35