Edit user meta on front-end via AJAX
The wp_ajax_ is a prefix for your ajax action. your action is my_tag_count so its should be: add_action( ‘wp_ajax_my_tag_count’, ‘my_action’ ); You tried to access the wrong url in the ajax request because you set wp_localize_script( ‘custom’, ‘my_ajax_obj’, $ajax_url ); So the the request url should be my_ajax_obj its not an object its don’t have … Read more