ixa/wordpress-core
Composer 安装命令:
composer require ixa/wordpress-core
包简介
WordPress fork that works with Composer
关键字:
README 文档
README
WordPress fork that works with Composer.
As of version 4.0, WordPress doesn't have Composer support. Using this fork you get a WordPress ready to be use as dependency in its own folder, and don't have to wait until WordPress core have built-in support.
Installation
require: {
"ixa/wordpress-core" : "~4.0"
}
If you are starting a new project, you can use Ixa WordPress Starter to get WordPress core and configuration files, running only one command
$ composer create-project ixa/wordpress-starter <project-name>
Configuration
A tipical file tree using WordPress and Composer is
+ wp-content # Defined by WP_CONTENT_DIR, WP_CONTENT_URL
+ themes
+ my-theme
+ uploads
+ plugins
+ wordpress # WordPress core
+ vendor
- wp-config.php # Main config file
- index.php # Must require './wordpress/wp-blog-header.php'
In order to run WordPress the following constants must be set in wp-config.php (example)
WP_HOME, URL of public area.WP_SITEURL, URL of WordPress instalationWP_CONTENT_DIRandWP_CONTENT_URL, Path and url for wp-content folder.themesandlanguagesfolders must be withinwp-contentand cannot be configurable
additionally, wp-config.php is a good place to require vendor/autoload.php.
And finally the index file must have the following:
<?php
define('WP_USE_THEMES', true);
require('./wordpress/wp-blog-header.php');
统计信息
- 总下载量: 339
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2013-10-12