最近更新的页面
Working with Custom Post Types
Custom Post Type Templates You can create custom templates for your custom post types. In the sam...
Registering Custom Post Types
WordPress comes with five default post types: post, page, attachment, revision, and menu. Wh...
Custom Post Types
WordPress stores the Post Types in the posts table allowing developers to register Custom Post T...
Uninstall Methods
Your plugin may need to do some clean-up when it is uninstalled from a site. A plugin is consider...
Plugin Basics
Getting Started At its simplest, a WordPress plugin is a PHP file with a WordPress plugin header ...
Including a Software License
Most WordPress plugins are released under the GPL, which is the same license that WordPress itsel...
Header Requirements
As described in Getting Started, the main PHP file should include a header comment that tells Wor...
Determining Plugin and Content Directories
When coding WordPress plugins you often need to reference various files and folders throughout th...
Best Practices
Here are some best practices to help organize your code so it works well alongside WordPress core...
Activation / Deactivation Hooks
Activation and deactivation hooks provide ways to perform actions when plugins are activated or d...
Rendering Post Metadata
Here is a non exhaustive list of functions and template tags used to get and render Post Metadata...
Managing Post Metadata
Adding Metadata Adding metadata can be done quite easily with add_post_meta(). The function acce...
Metadata
Metadata is information about information. In the case of WordPress, it's information associated ...
Custom Meta Boxes
What is a Meta Box? When a user edits a post, the edit screen is composed of several default boxe...
Summary
Here are all the example code snippets from the preceding discussion, assembled into two complete...
jQuery
Using jQuery Your jQuery script runs on the user's browser after your WordPress webpage is receiv...
JavaScript
JavaScript is an important component in many WordPress plugins. WordPress comes with a variety o...
Heartbeat API
The Heartbeat API is a simple server polling API built in to WordPress, allowing near-real-time f...
Server Side PHP and Enqueuing
There are two parts to the server side PHP script that are needed to implement AJAX communication...
AJAX
What is AJAX? AJAX is the acronym for Asynchronous JavaScript And XML. XML is a data exchange for...