Skip to content

Repository files navigation

ThemePlate Application

Usage

./vendor/bin/themeplate install

wp-config.php

useThemePlate\Application\Core;
useEnv\Env;
require_once'vendor/autoload.php';
Core::setup( __DIR__ ); // .env location$table_prefix = Env::get( 'DB_PREFIX' ) ?: 'wp_';
require_onceABSPATH . 'wp-settings.php';

.env

## Relative to this .env file# PUBLIC_ROOT='public'## Relative to the PUBLIC_ROOT# WP_CORE_DIR='wp'# CONTENT_DIR='content'WP_HOME='https://themeplate.local'# DB_NAME='local'# DB_USER='root'# DB_PASSWORD='root'# DB_HOST='localhost'# DB_PREFIX='wp_'# DB_CHARSET='utf8'# DB_COLLATE=''WP_DEBUG=true# WP_DEBUG_LOG='/path/to/debug.log'# WP_ENVIRONMENT_TYPE='local'# WP_DEFAULT_THEME='themeplate'# DISABLE_WP_CRON=true# DISALLOW_FILE_MODS=false# Authentication Unique Keys and SaltsAUTH_KEY='generateme'SECURE_AUTH_KEY='generateme'LOGGED_IN_KEY='generateme'NONCE_KEY='generateme'AUTH_SALT='generateme'SECURE_AUTH_SALT='generateme'LOGGED_IN_SALT='generateme'NONCE_SALT='generateme'

Structures

Default

├── public/
│ └── content/
│ │ ├── mu-plugins/
│ │ ├── plugins/
│ │ ├── themes/
│ │ └── uploads/
│ ├── wp/
│ └── index.php
├── vendor/
└── composer.json
└── wp-config.php

index.php

define( 'WP_USE_THEMES', true );
require__DIR__ . '/wp/wp-blog-header.php';

Modern

├── public/
│ ├── mu-plugins/
│ ├── plugins/
│ ├── themes/
│ ├── uploads/
│ ├── index.php
│ └── ... WP CORE files
├── vendor/
└── composer.json
└── wp-config.php

.env

...
WP_CORE_DIR='/'CONTENT_DIR='/'
...

About

For building a modern WordPress site

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages