plugin_dir_path() in WAMP
I’m running my WordPress development installation on WAMP (Windows Web Development Platform).
Every works well, but I have problem with the path functions.
For example, plugin_dir_path() returns “C:\wamp\www\wpdev\wp-content\plugins\my-plugin/”.
Fine if it weren’t for the / at the end. It should be turned the other way (\) on WAMP.
Anyone have some ideas that can fix this problem? (I really don’t want to mess up my plugin code with a string replacement)
- The topic ‘plugin_dir_path() in WAMP’ is closed to new replies.