wp_ajax_[service] returning 0 April 23, 2022 by Tarik Billa According to the WordPress documentation, you should call die() at the end of your PHP function to return proper results.