How to get path or root of plugin folder, not file or dir?
I want to include one file from the plugin root to somewhere in the plugin folder. Folder structure:
/plugin
/folder - Can't 'esacpe' from this folder to root
/otherfolder
/req-file-to-here.php // fetch here
/req-file-from-here.php // send from here
What to exactly type in file req-file-to-here.php
?
I have tryed something like this:
require plugin_dir_path( __FILE__ ) . '..path to file';
or
require plugin_dir_path( __DIR__ ) . '..path to file';
Not working. Help :)