Correct way to GET another PHP file hosted on WordPress

When performing a GET from inside a .php file that is part of a concatenated code, is there a way (or a correct way) to refer to another PHP file in the same folder?

for example i have a shortcode that uses a function in a php file and i want to make the request below where the url is a php file which is also hosted on wordpress site

, get(url, callback);

Leave a Comment