WordPress.org

Forums

plugin_dir_path() in WAMP (2 posts)

  1. Mads Phikamphon
    Member
    Posted 2 years ago #

    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

  2. alexwenzel
    Member
    Posted 1 year ago #

    I have the same problem. Any solution?

Topic Closed

This topic has been closed to new replies.

About this Topic