Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    What in particular are you looking for?

    Thread Starter faketa

    (@faketa)

    The basics. Since the begining I saw the discrepancy between plugins folder, in previous version was /wp-content/plugins , in newest is /web/app/plugins

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Folder structure is not typically handled by WordPress. Is this on a local environment or through a host?

    From what I can remember I know you can define some constants to determine where those folders reside but can’t recall off the top of my head what they are. But as far changing those folder destinations, WordPress does not do it without user consent.

    Thread Starter faketa

    (@faketa)

    Okay, thank you for the information. This is directly on host. I started to create a plugin and it`s working.

    Moderator bcworkz

    (@bcworkz)

    /wp-content/plugins is still the default path and the Plugin Handbook is still current. It sounds like your host has relocated their plugins folder on their installations. It’s not that unusual to do so. You shouldn’t be using hardcoded paths in your plugin if you want it to be portable to other installations. Use functions like plugins_url() and plugin_dir_path() to get to plugin files and the functions will return the correct path for the current installation regardless of where it is.

    Thread Starter faketa

    (@faketa)

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Latest WordPress plugin development documentation’ is closed to new replies.