plugin_dir_url() breaks with symlinks
-
The docs suggest that getting the plugin url is done using
plugin_dir_url( __FILE__ );
But this doesn’t work when the plugin folder is a symlink, because “__FILE__ is the full path and filename of the file with symlinks resolved” (https://php.net/manual/en/language.constants.predefined.php)
Anyone know of a way around this?
- The topic ‘plugin_dir_url() breaks with symlinks’ is closed to new replies.