-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Adds namespacing and makes function naming more consistent.
- Loading branch information
Showing
87 changed files
with
2,299 additions
and
1,818 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Included `PHP` Files | ||
|
||
Use the `/inc` directory to declare any theme functionality. All files in this directory are imported inside of `functions.php`. | ||
|
||
## Directories | ||
|
||
The `/inc` directory is organized into sub-directories based on the functionality/purpose of the code. These directories can be modified as needed, but the following structure is recommended: | ||
|
||
```text | ||
inc/ | ||
└─── customizer/ (functions relating to the theme customizer) | ||
└─── functions/ (general functions that don't fit into any other directory) | ||
└─── hooks/ (theme hooks) | ||
└─── post-types/ (theme post type registrations & functions) | ||
└─── scaffolding/ (theme scaffolding functions) | ||
└─── setup/ (functions relating to the theme setup) | ||
└─── shortcodes/ (shortcode registrations) | ||
└─── template-tags/ (functions that render markup for use in theme templates) | ||
└─── README.md | ||
``` | ||
|
||
## Filenames | ||
|
||
As a general rule, each `.php` file should contain a single function/action which should match the name of the file (replacing underscores with hyphens in the filename). | ||
|
||
For example, `function demo_function() {...}` would be declared in a file named `demo-function.php` and stored inside an appropriate `/inc` sub-directory. | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.