What is the best way to instantiate a class of a plugin in your WordPress theme?
There are two common solutions to access classes in a plugin from inside a theme: 1. Use an autoloader in the plugin (preferred). You tell the autoloader how to relate a class name to a PHP file name that contains the class. Then, when you access a class that is not yet known to PHP, … Read more