Error in using ‘admin_enqueue_scripts’ action through a class
There are several problems here: Problem 1: plugin_dir_url In a comment you mentioned using this code to load the file the class is in: define(“Plugin_root”, plugin_dir_url(FILE)); include_once(Plugin_root . ‘public/index1.php’); This results in this value being used in include_once: include_once( ‘http://example.com/wp-content/plugin/public/index1.php` ); Which is why you’re getting PHP fatal errors when you try to use the … Read more