This is a simple concept question… If I have a wordpress plugin and I want to write some functions for my own IN ADDITION to what they have already where would I put them in the wordpress file structure?
I cant put them in the original core.php files/directory because they will get wiped out when the plugins are updated right?
@NomikOS – Yeah Sure .. I have a wordpress plugin called BP-Phototag- pretty much an album..Its located in the wp-content/plugins folder. I want to add my own functions…for a specific template in my themes folder. DO i put the functions in the bpa.core.php file in the wp-conten/plugins folder or do I make a new php file that can inherit bpa.core.php functions(which I dont know how to do) and stick them in my template specific folder under wp-content/themes/mytheme folder. Im really not sure how to extend and override it…
If the plugin is class based, you can extend it to override/add methods. You can include the file containing your code inside plugin’s directory if you want (it will not deleted after an upgrade) or directly inside
plugins
dir.EDIT 1
Sorry, I didn’t saw your last comment. Well, my friend, it’s time to learn OOP PHP5. I recommend you PHP 5 objects, patterns, and practice. It’s for PHP serious coders.
Basically you do