WordPress.org

Support

Support » Plugins and Hacks » how to include files in plugins

how to include files in plugins

  • How do i control if a specific file exist in my plugin sub-folder?

    I plan to make a language file in danish an a default i english.

    so the question is how do i in practice make the following?

    if ( file_exist(WPLANG ."mo")) {
      include WPLANG ."mo";
    } else {
      include "en_EN.mo";
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to include files in plugins’ is closed to new replies.
Skip to toolbar