super-cpt
super-cpt copied to clipboard
Added ability to turn on 'THEME MODE', to set correct URLs for assets.
I noticed an error in my console, because the default URL for css and js is the plugin URI.
You could simply add this line to your functions.php and the issue is solved. That's the idea behind the constant SCPT_PLUGIN_URL
actually.
define( 'SCPT_PLUGIN_URL', get_template_directory_uri() . '/super-cpt/' );