Wordpress - 14的路. WordPress源码解读(1) - 14的路. 地图:index.php->wp-blog-header.php->wp-load.php->wp-config.php index.php: 描述:前端入口,基本没有内容。
1)定义WP_USE_THEMES常量,当该常量定义为false时,站点会显示为空白;为true时则正常显示。 2)加载wp-blog-header.php文件。 Wp-blog-header.php: 描述:用于加载WP环境和模板。 1)设置$wp_did_header变量,相当于一个flag,确保wp-blog-header.php文件只在第一次被加载时执行。 2)加载wp-load.php文件。 3)调用wp()函数。 4)加载wp-includes/template-loader.php文件 wp-load.php: 描述:启动引导(Bootstrap)文件,用于设置ABSPATH常量和加载wp-config.php文件。 如果找不到wp-config.php文件,则会提示错误信息,要求用户设置wp-config.php文件。 Wp-load.php还会自动搜索WP的上级文件夹寻找wp-config.php文件,因此可以保护WP文件夹不被暴露。 1)设置ABSPATH常量为到WP文件夹的路径。 2)设置错误报告模式。 3)加载wp-config.php文件(a.直接加载、b.从上级文件夹加载、c.找不到则报错,使用wp_die()函数)。
Wp-config.php: 描述:WordPress基础配置文件。 1)设置数据库名、用户名、密码、数据库主机、数据库编码、数据库整理类型、数据库表前缀。 2)设置身份密匙,用于进行cookie加密。 3)设置WP语言。 4)设置WordPress目录的绝对路径ABSPATH。 使用Netbeans开发WordPress « 冰古blog. 冰古blog » NetBeans » 2008 » 12 » 24 » 使用Netbeans开发WordPress 工欲善其事,必先利其器。 所以在对 Dev-PHP2 不太满意的情况下,我又再折腾了一番。 ConfiguringNetBeansProjectForWordPress. This document provides instructions on how to configure a NetBeans PHP project for WordPress.
Such a project can be useful to developers who develop WordPress or its extensions, or to those who want to debug or just inspect the WordPress code. Note: The scenario described in this document assumes that all resources -- web server, database, PHP sources -- are available on a local development machine. Using a WordPress Page as Your Home Page.
This has been tested to work in WordPress 2.X and above.
This article was last updated in March, 2013. Welcome to WordPress Wednesday! Each week we’ll be answering as many of your questions about the blogging platform WordPress as possible. 使用Netbeans开发WordPress-开发工具-编程环境. WordPress 主题开发工具. WordPress 开发者工具箱(上) WordPress 开发者工具箱(上) 作者: its | 发布: 2008-11-12 (16:02) | 阅读: 22839 |评论: 0|静态地址|内容源码 这是来自 Smashing Magazine 的一份 WordPress 开发资源清单,涵盖了WordPress 教程,WoredPress 主题开发,定制,WordPress 目录与导航菜单,以及将 WordPress 的 CMS 应用等各种开发资源。
本文将分为两个部分发表。 这是第一部分。 第二部分请参阅:WordPress 开发工具箱(下) 1. The WordPress Help Sheet 这是一个单页的 PHP 代码片段集,用于 WordPress 主题开发。 The Advanced WordPress Help Sheet 上面的 WordPress 的帮助表单的略高级版 Huge Compilation of WordPress Code 代码片段,用于各种功能 WordPress Template Tag Reference Guide 主题开发时会用到的 WordPress 模板标签参考 Unraveling the Secrets of WordPress’ comments.php File WordPress comments.php 探秘 48 Unique Ways to Use WordPress WordPress 的48种独特应用 Theme Switcher Reloaded 显示多种 WordPress 主题演示 2. 2.1 WordPress 主题创建 ABC Designing for WordPress Chris Coyier 撰写的 CSS 技巧 Developing a WordPress Theme 开发 WordPress 主题教程 How to Create a WordPress Theme from Scratch 从零开始开发 WordPress 教程 How to Create WordPress Themes from Scratch - Part 1.