In the JavaScript, you’re using "action": "tihom_rating_action"
, but in PHP you’re using wp_ajax_nopriv_my_action
. Instead of my_action
you need to use tihom_rating_action
as well.
In the JavaScript, you’re using "action": "tihom_rating_action"
, but in PHP you’re using wp_ajax_nopriv_my_action
. Instead of my_action
you need to use tihom_rating_action
as well.