Multiple file plugin: Can a plugin access other files in the plugin dir?
-
I’m working on a plugin that pulls pet info from Petfinder and displays it in the form of a gallery of photos, each photo being a link to a new page containing additional info on a particular pet (you can see it here – https://www.specialonescatrescue.com/adopt/
The plugin is currently one single file. What I would like to know is if I can split it into 2 separate files, both residing in the plugin folder as follows:
1. The main plugin file, to contain the main gallery.
2. To contain the code to display an individual pet record.Is there a way to do this? (The only WP functions I was able to find, that provide access to the plugin folder, provide only absolute paths and thus result in a ‘server not found’ error. )
- The topic ‘Multiple file plugin: Can a plugin access other files in the plugin dir?’ is closed to new replies.