WordPress.org

Support

Support » Localhost Installs » plugin_dir_path() in WAMP

plugin_dir_path() in WAMP

  • Hi,

    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)

    Thanks,
    Mads

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘plugin_dir_path() in WAMP’ is closed to new replies.