Download the PHP package skycel/custom-theme-tree without Composer
On this page you can find all versions of the php package skycel/custom-theme-tree. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download skycel/custom-theme-tree
More information about skycel/custom-theme-tree
Files in skycel/custom-theme-tree
Package custom-theme-tree
Short Description WordPress plugin that provides a structured and organized theme development environment with customizable directory structures.
License MIT
Informations about the package custom-theme-tree
WordPress Custom Theme Tree
A WordPress plugin that provides a structured and organized theme development environment with customizable directory structures.
Overview
This plugin helps WordPress theme developers by implementing a standardized and customizable directory structure. It automatically creates and manages theme directories, handles templates, and provides a clean organization for your theme files.
Features
- 🗂️ Organized directory structure for templates and assets
- 🔧 Customizable configuration
- 🚀 Automatic creation of required WordPress theme files
- 📁 Support for template subdirectories (archives, pages, components, etc.)
- 🎨 Dedicated assets organization
- 📌 Optional .gitkeep file management
Directory Structure
By default, the plugin creates the following structure:
Installation
There are three ways to install this plugin:
1. Standard Plugin Installation
-
Clone this repository into your WordPress plugins directory:
- Activate the plugin through the WordPress admin interface
2. Must-Use Plugin Installation
-
Create the
mu-pluginsdirectory if it doesn't exist: -
Copy or clone the plugin into the mu-plugins directory:
- Create a loader file named
custom-theme-tree.phpin the mu-plugins root:
The plugin will be automatically activated as a Must-Use plugin.
3. Theme Integration
-
Create a
pluginsorincludesdirectory in your theme: -
Copy or clone the plugin into your theme directory:
- Add the following code to your theme's
functions.php:
Choose the installation method that best suits your needs:
- Standard plugin: For regular themes and easy activation/deactivation
- Must-Use plugin: For required functionality across all sites in your installation
- Theme integration: For theme-specific implementation and distribution
Configuration
Create or modify the theme.php file in your theme's config directory:
Configuration Options
USE_GITKEEP: Enable/disable .gitkeep files in empty directoriesUSE_CUSTOMTREE_PLUGIN: Enable/disable the plugin functionalityCUSTOMTREE: Array for custom directory structure configuration
Usage
The plugin works automatically after activation. It will:
- Create the necessary directory structure
- Set up required WordPress theme files
- Initialize template loaders for different content types
- Handle component loading (header, footer, sidebar, etc.)
Custom Directory Structure
You can customize the directory structure by modifying the CUSTOMTREE constant in your theme.php:
Requirements
- WordPress 5.0 or higher
- PHP 8.0 or higher
License
This project is licensed under the MIT License.