I'm working on my first WP plugin, and I'm having trouble getting a file include to work. My directory structure looks like this:
My main plugin file (
myplugin.php) includes / requires various files in the classes directory, and that works fine. However, one of the files in the classes directory is supposed to include a file from the templates directory. I've tried everything I can think of, from
plugin_dir_path() but nothing seems to work.
How should this statement look to get it to do what I'm trying to accomplish?