Open diggetydog opened 8 years ago
Add it where it makes sense to you. I would put something like that in the admin class that checks for the db existence, with a method to check for first install/activation etc.
@diggetydog Just as a reference, if you're interested, Pippin Williamson just did a great series on building a database abstraction layer, handy stuff (behind a small paywall, but worth it): https://pippinsplugins.com/series/building-a-database-abstraction-layer/
@joshuadavidnelson thanks for the link. It took me a bit to figure out but it was well worth the time and couple bucks
@EdawRellek Awesome! Happy it was helpful. Pippin's a great resource.
Hey Dean. Great structure - I have bean wrapping my head around the templates and structure. Very good commenting. I am a noob to this and had a question. I need to install a database to manipulate. Where is the best place to add install code? includes/class-plugin.php? includes/class-plugin-activator.php?