For some reason I get the following output from
var_dump( plugin_dir_url( __FILE__ ) );
in a local install.
Note: I deactivated all plugins and added the line on top of the functions.php
file of the default and unmodified TwentyEleven Theme
For some reason I get the following output from
var_dump( plugin_dir_url( __FILE__ ) );
in a local install.
Note: I deactivated all plugins and added the line on top of the functions.php
file of the default and unmodified TwentyEleven Theme
You must be logged in to post a comment.
There is
plugin_basename()
call some levels inside which seems to useWP_PLUGIN_DIR
andWPMU_PLUGIN_DIR
constants, so my guess would be this function is only meant to be used for things inside plugin directories and not other places like theme.