Home  >  Article  >  Backend Development  >  1.开始文件index.php

1.开始文件index.php

WBOY
WBOYOriginal
2016-06-13 13:08:15872browse

一.开始文件index.php
wordpress的index文件很简单,声明加载主题的常量和包含头文件。

define('WP_USE_THEMES', true);	//加载主题

require('./wp-blog-header.php');  //加载环境和模板
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn