add_action(‘wp_ajax_[action name]’, myfunction) problem
There are only three explanations for why this isn’t working: First, something could be unregistering your action. That doesn’t seem very likely, though. Second, your code never runs in the ajax initialization. Third, the wp_ajax_my_function_call hook never runs. I wouldn’t worry about the possibility of the first. As far as the second, just make sure … Read more