定制 ixa/wordpress-core 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 instalation
  • WP_CONTENT_DIR and WP_CONTENT_URL, Path and url for wp-content folder. themes and languages folders must be within wp-content and 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

GitHub 信息

  • Stars: 12
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2013-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固