AJAX & PHP | Call a specific PHP function from a PHP file via AJAX?
No, it’s not possible if you want to follow the best practice, and neither you need and should do it. When you make an AJAX call, some parts or WordPress’s core will be loaded based on the AJAX type (whether it’s admin-Ajax or REST-API). It is vital for this to happen, since some scripts demand … Read more