Add this as well: add_action('wp_ajax_nopriv_my_action', 'my_action_callback');
. Notice the nopriv
.
It will solve your problem!
Add this as well: add_action('wp_ajax_nopriv_my_action', 'my_action_callback');
. Notice the nopriv
.
It will solve your problem!