Redirecting to https://wordpress.stackexchange.com/questions/317267/ajax-call-to-php-function-doesnt-work-php-code
Or
Click here