I want to add a product programmatically using a wordpress plugin but programmatically as entering it manually is a hassle. I have a little bit of programming experience.
I found this:
What is your best practice to execute one-time scripts?
The only issue that I’m having is how do I call functions from a plugin in this script? I guess more specifically, what is the base path of plugin .php files that I would pass in to include()
? An example would be great.