0
votes
2answers
57 views

What's wrong with my use of plugin_url()?

I keep getting the following message in the browser Fatal error: Call to undefined function plugin_url() in My code at present: add_action( 'wp_enqueue_script', 'load_jquery2' ); function ...
1
vote
1answer
181 views

plugins_url() works everywhere but wp_reqister_script()

So I should probably mention up front that I'm developing a plugin so my url is 'mysite.com/plugin' (Just in case this is related to my issue. So, In my main plugin file (myplugin.php) I have added ...