When including files in a plugin, I've seen people do
WP_PLUGIN_DIR.'/'.dirname(plugin_basename(__FILE__)).'/somefile.css'
and yet WordPress wp_enqueue_script/style
uses URI for the file path (such as plugins_url
).
What difference is there? I'm confused...