diff --git a/functions/README.md b/functions/README.md index f05e932..774f56d 100644 --- a/functions/README.md +++ b/functions/README.md @@ -1,10 +1,9 @@ -# Wordpress Functions +# WordPress Functions When creating functions, smaller plugins, or anything else that is related to the functions.php file, please adhere to the following standards: -* Code related to the actual site/app should be placed under `/site/`. These include ajax requests for example. -* Code that relates to Wordpress, should be placed under `/wordpress/`. These include functions, actions, and filters. -* Code related to the core of Wordpress should be placed under `/core/`. These include custom CPT, taxonomies, menus, sidebars, widgets ... etc. +* Code related to the actual site/app should be placed under `/site/`. +* Code that relates to WordPress (post types, filters, etc.) should be placed under `/wordpress/`. * The main directory of `/functions/` shouldn't contain any files except: - environment.php * Small functions which don't warrant their own file should be placed in `/wordpress/utility.php` with a short description on their functionality. @@ -13,7 +12,5 @@ All of your functions should be included through `functions.php` located in the ``` // Short description of your inclusion -include_once('functions/wordpress/function-name.php'); +include_once('functions/wordpress/file-name.php'); ``` - -For additional [useful functions](http://wiki.40digits.net/resources/wp-functions-to-take-advantage-of/) to take advantage of, read our Wiki article.