What is the shortcut path to the existing plugins folder using file_get_contents()?
- by Scott B
My code is inside a plugin's init function and I'm trying to file_get_contents() on a file inside my plugin folder..
I'm using...
file_get_contents(ABSPATH.'/wp-content/plugins/myplugin/myfile');
Not sure why can't I just use...
file_get_contents('myfile.html');