Initialize class inside plugin
You don’t appear to have actually enqueued your script anywhere. You registered it, but don’t enqueue it, unless that code is elsewhere. When you load a file directly like you are– aka., browsing straight to ‘/wordpress/wp-content/plugins/konfigurator/html/class.konfigurator.php’— you can’t use any of WordPress’ functions because you have bypassed WordPress’ boot process. To use WordPress functions you … Read more