Skip to content

Plugin Structure

WP Wireframe lives inside your plugin as a bundled dependency. A typical layout:

  • Directorymy-plugin/
    • my-plugin.php (Boot call — ~15 lines)
    • Directoryconfig/
      • settings.php (Field definitions, or pass inline)
    • Directoryvendor/
      • Directorywp-wireframe/ (Extracted from the release zip)
        • Directorysrc/
          • …
        • Directoryvendor/ (magewirephp/validation)
          • …

The config/ directory is convention, not a requirement — boot() accepts either a path to a PHP file or an inline config array. See Boot Options for the full list.