Skip to content

Instantly share code, notes, and snippets.

@andrewwoods
Last active October 17, 2017 05:32
Show Gist options
  • Save andrewwoods/d74ed54b5c8016cf97b1987c7ddcdfc4 to your computer and use it in GitHub Desktop.
Save andrewwoods/d74ed54b5c8016cf97b1987c7ddcdfc4 to your computer and use it in GitHub Desktop.
WordPress Theme Directory Structure
<?php
/*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* FUNCTIONS *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
require_once 'admin/menus.php';
require_once 'admin/widgets.php';
require_once 'post-types/one.php';
require_once 'post-types/two.php';
require_once 'widgets.php';
/*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* CONSTANTS *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
/*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* GENERAL *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
/*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* AUTOLOADER *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
  • CHANGELOG.md
  • README.md
  • 404.php
  • admin/
    • menus.php
    • widgets/
    • widgets.php
  • archive.php
  • classes/
  • docs/
  • footer.php
  • functions.php
  • header.php
  • images/
    • headers/
    • backgrounds/
  • index.php
  • assets/
    • config.rb
    • config-dev.rb
    • sass/
      • _base.scss
      • _navigation.scss
      • _posts.scss
      • _settings.scss
    • css/
      • admin.css
      • public.css
    • js/
      • admin.js
      • public.js
    • languages/
  • page.php
  • post-types/
  • phpdoc/
  • phpunit.xml
  • screenshot.png
  • single.php
  • style.css
  • templates/
  • tests/
  • widgets/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment