跳转到主要内容

最近更新的页面

Working with Custom Post Types

WordPress Plugin Handbook Post Types

Custom Post Type Templates You can create custom templates for your custom post types. In the sam...

由 壳壳虫 更新于 2 周前

Registering Custom Post Types

WordPress Plugin Handbook Post Types

WordPress comes with five default post types: post, page, attachment, revision, and menu. Wh...

由 壳壳虫 更新于 2 周前

Custom Post Types

WordPress Plugin Handbook Post Types

WordPress stores the Post Types in the posts table allowing developers to register Custom Post T...

由 壳壳虫 更新于 2 周前

Uninstall Methods

WordPress Plugin Handbook Plugin Basics

Your plugin may need to do some clean-up when it is uninstalled from a site. A plugin is consider...

由 壳壳虫 更新于 2 周前

Plugin Basics

WordPress Plugin Handbook Plugin Basics

Getting Started At its simplest, a WordPress plugin is a PHP file with a WordPress plugin header ...

由 壳壳虫 更新于 2 周前

Including a Software License

WordPress Plugin Handbook Plugin Basics

Most WordPress plugins are released under the GPL, which is the same license that WordPress itsel...

由 壳壳虫 更新于 2 周前

Header Requirements

WordPress Plugin Handbook Plugin Basics

As described in Getting Started, the main PHP file should include a header comment that tells Wor...

由 壳壳虫 更新于 2 周前

Determining Plugin and Content Directories

WordPress Plugin Handbook Plugin Basics

When coding WordPress plugins you often need to reference various files and folders throughout th...

由 壳壳虫 更新于 2 周前

Best Practices

WordPress Plugin Handbook Plugin Basics

Here are some best practices to help organize your code so it works well alongside WordPress core...

由 壳壳虫 更新于 2 周前

Activation / Deactivation Hooks

WordPress Plugin Handbook Plugin Basics

Activation and deactivation hooks provide ways to perform actions when plugins are activated or d...

由 壳壳虫 更新于 2 周前

Rendering Post Metadata

WordPress Plugin Handbook Metadata

Here is a non exhaustive list of functions and template tags used to get and render Post Metadata...

由 壳壳虫 更新于 2 周前

Managing Post Metadata

WordPress Plugin Handbook Metadata

Adding Metadata Adding metadata can be done quite easily with add_post_meta(). The function acce...

由 壳壳虫 更新于 2 周前

Metadata

WordPress Plugin Handbook Metadata

Metadata is information about information. In the case of WordPress, it's information associated ...

由 壳壳虫 更新于 2 周前

Custom Meta Boxes

WordPress Plugin Handbook Metadata

What is a Meta Box? When a user edits a post, the edit screen is composed of several default boxe...

由 壳壳虫 更新于 2 周前

Summary

WordPress Plugin Handbook Javascript

Here are all the example code snippets from the preceding discussion, assembled into two complete...

由 壳壳虫 更新于 2 周前

jQuery

WordPress Plugin Handbook Javascript

Using jQuery Your jQuery script runs on the user's browser after your WordPress webpage is receiv...

由 壳壳虫 更新于 2 周前

JavaScript

WordPress Plugin Handbook Javascript

JavaScript is an important component in many WordPress plugins. WordPress comes with a variety o...

由 壳壳虫 更新于 2 周前

Heartbeat API

WordPress Plugin Handbook Javascript

The Heartbeat API is a simple server polling API built in to WordPress, allowing near-real-time f...

由 壳壳虫 更新于 2 周前

Server Side PHP and Enqueuing

WordPress Plugin Handbook Javascript

There are two parts to the server side PHP script that are needed to implement AJAX communication...

由 壳壳虫 更新于 2 周前

AJAX

WordPress Plugin Handbook Javascript

What is AJAX? AJAX is the acronym for Asynchronous JavaScript And XML. XML is a data exchange for...

由 壳壳虫 更新于 2 周前