WordPressを読む 1 /blog/index.php 完了
2014/11/21
/blog/index.php
です。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' ); |
現在のpathを取得してwp-blog-header.phpを読み込みます。
定数
WP_USE_THEMES=true
出てきた関数
define()
require()
dirname()
wp-blog-header.php をロードします。
読み込むファイル
wp-blog-header.php