What is the shortcut path to the existing plugins folder using file_get_contents()?

Posted by Scott B on Stack Overflow See other posts from Stack Overflow or by Scott B
Published on 2010-03-09T07:34:18Z Indexed on 2010/03/09 7:36 UTC
Read the original article Hit count: 125

Filed under:
|

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');

© Stack Overflow or respective owner

Related posts about php

Related posts about Wordpress