background preloader

Wordpress develope

Facebook Twitter

Grep

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。 5)加载wp-settings.php文件。 使用Netbeans开发WordPress « 冰古blog.

冰古blog » NetBeans » 2008 » 12 » 24 » 使用Netbeans开发WordPress 工欲善其事,必先利其器。 所以在对 Dev-PHP2 不太满意的情况下,我又再折腾了一番。 不过这次,我只试用了一个软件—— ,就马上被她吸引住了。 NetBeans是一款用java编写的多语言 (所以需先安装 JDK ),最新版本是6.5,在这个版本中添加了 的支持。 下载安装完毕,当然是要先设置PHP、MySQL等环境,参考官方的 教程 很容易就可以搞定。 再接下来就是在NetBeans中设置 项目,步骤则参考wiki: Configuring NetBeans Project For WordPress 。 为什么要使用NetBeans来开发WordPress呢? 1.NetBeans对javaDoc有很好的支持,而WordPress都有很好的文档注释,所以不仅PHP内置函数有代码提示,WordPress中的函数等也有代码提示。 例如:我们输入 ,然后按 就会显示出add_action的函数提示 2.你是否有这样的经历呢:有一个WordPress内置函数,你想知道它的具体代码是怎样实现的,但却不知道这个函数具体是在那个文件中声明的。 把光标定位到想查找的函数上,右键,选择“导航” -> “转至声明” 3.由上图你可以看到一个“查找实例”的选项,它的作用就是在整个项目中查找使用了这个函数的文件以及在这些文件中的位置。 要说这个编辑器有什么缺点的话,我只能说占用内存等资源稍微大了一点(内存要200mb左右)。

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. The project configuration might be different in the case of a remote development. Getting WordPress sources The WordPress sources are available at Download the .zip or .tar.gz bundle and unpack it somewhere (e.g.

Installing NetBeans Download and install NetBeans IDE 6.5 for PHP. Or use the Beta (Milestone 2) when it becomes available. Download the .zip or .tar.gz bundle and unpack it on your drive (e.g. Configuring the Web Server and PHP Make sure you have Apache web server installed and running on your system. }}center. 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. If you have questions you’d like answered that aren’t covered here, feel free to drop them in the comment form below. Covering topics such as themes, plugins, popular tutorials, current WordPress promotion codes, and more – be sure to jump in with your questions and comments. QUESTION: I’d like to use something other than my recent posts as my home page. It’s not only possible it’s relatively easy. In your WP control panel, select the Pages tab.Click on Add New.Give the page a title – something like, “HOMEPAGE”Create the content for your home page just as you would a blog post.Click the Publish button.

While you’re still in the Write Page subpanel, create a second page: Now you’re ready tell WP to use your new page as the home page: Click Save Changes. 使用Netbeans开发WordPress-开发工具-编程环境. 工欲善其事,必先利其器。 所以在对Dev-PHP2不太满意的情况下,我又再折腾了一番。 不过这次,我只试用了一个软件——NetBeans,就马上被她吸引住了。 NetBeans是一款用java编写的多语言IDE(所以需先安装JDK),最新版本是6.5,在这个版本中添加了PHP的支持。 虽说她支持多种语言,但我们使用的仅是PHP,只下载支持PHP的版本即可。 下载安装完毕,当然是要先设置PHP、MySQL等环境,参考官方的教程很容易就可以搞定。 再接下来就是在NetBeans中设置WordPress项目,步骤则参考wiki:Configuring NetBeans Project For WordPress。 为什么要使用NetBeans来开发WordPress呢? 1.NetBeans对javaDoc有很好的支持,而WordPress都有很好的文档注释,所以不仅PHP内置函数有代码提示,WordPress中的函数等也有代码提示。

2.你是否有这样的经历呢:有一个WordPress内置函数,你想知道它的具体代码是怎样实现的,但却不知道这个函数具体是在那个文件中声明的。 3.由上图你可以看到一个“查找实例”的选项,它的作用就是在整个项目中查找使用了这个函数的文件以及在这些文件中的位置。 要说这个编辑器有什么缺点的话,我只能说占用内存等资源稍微大了一点(内存要200mb左右)。 本文出自: 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 从零开始开发 WordPress 主题教程 - 第1部分 How to Create WordPress Themes from Scratch - Part 2 从零开始开发 WordPress 主题教程 - 第2部分 2.2.