WordPress插件开发教程,开发手册

Development of a WordPress plugin is not a difficult thing, but if you want to develop a popular WordPress plugin, and let the plugin for their own revenue, but not so easy, this tutorial is translated from the official WordPress.org, the level of the limitations of the translation is not very good, the friends of the English over the friends can go directly to view the official WordPress manual! This tutorial is translated from WordPress.org official.Translation is not easy, please retain the link and credit the source!

WordPress Plugin Development Tutorial Manual - Introduction to Plugin Development

Welcome to the World of Plugin Development Welcome to the WordPress Plugin Developer's Handbook Ready to enter the world of WordPress plugin development? This is a tutorial resource on WordPress plugin development, whether you're a first-time WordPress plugin developer or an experienced WordPress plugin developer, you can...

WordPress Plugin Development Tutorial Manual - Plugin Basics Tutorials

WordPress Plugin Development Basics Getting Started with Plugin Development Simply put, a WordPress plugin is a PHP file with a WordPress plugin header comment, and we highly recommend creating a directory for the plugin in order to keep the plugin files neatly organized and easy to maintain. To create a new WordPress plugin, follow these steps...

WordPress Plugin Development Tutorial Manual - Plugin Security

Congratulations, your code passed the proficiency test, but is the plugin code secure? How plugins can protect users from attacks if their site is targeted by hackers The plugins in the WordPress.org Plugin Catalog have gone to great lengths to ensure the security of their information. Keep in mind that your code could be in millions of ...

WordPress plugin development tutorial manual - hooks (Hooks)

Hooks are a way to add/modify another piece of code with a piece of code, and are the basis for WordPress plugins and themes to interact with the WordPress kernel, hooks are also widely used in the WordPress kernel.There are two types of hooks in WordPress, Action and Filter.To use hooks, we need to write a custom function first as a ...

WordPress Plugin Development Tutorial Manual - Admin Menu

The Admin Menu is a menu of backend administrative features displayed on the left side of the WordPress backend that allows us to add custom settings option pages for plugins or themes. For information about the admin navigation menu, see the Navigation Menu chapter of the Theme Developer's Manual. Top Menu and SubmenusThe top menu is displayed on the left side of the WordPress backend and can contain a...

WordPress Plugin Development Tutorial Manual - Shortcodes

As a security precaution, WordPress prohibits PHP code from running within content. To allow us to dynamically add content, WordPress 2.5 introduces the concept of shortcodes. Shortcodes are code used to dynamically add content. Using shortcodes, we can dynamically create photo albums, play videos, insert forms or...

WordPress Plugin Development Tutorial Manual - Setting Options

In order to make the admin interface easy to build, secure, and consistent in design with the WordPress admin interface, WordPress provides two core APIs.The Settings API focuses on providing us with a way to create forms and manage form data. The Options API focuses on providing a simple key/value system for managing...

WordPress Plugin Development Tutorial Manual - Metadata

Metadata is information about data, such as an image's size, type, creation time, dimensions, etc. In WordPress, metadata refers to additional information about posts, users, comments, and taxonomy items. As an example, we created a custom post type of type "Merchandise" that contains a price metadata field...

WordPress Plugin Development Tutorial Manual - Customizing Post Types

WordPress custom post types are stored in the wp_psots datasheet and developers can register their own post types. In this section, we will discuss how to register custom post types, how to get custom post type content from the database, and how to display that content to users. Why use custom article types...

WordPress Plugin Development Tutorial Manual - Customizing Category Methods

Taxonomy is another way of saying categories and groupings, and taxonomies can be hierarchical and flat.WordPress lets plugin developers register custom taxonomies, which are stored in the term_taxonomy datasheet. The taxonomy has a number of taxonomy items that are stored in the wp_terms table. For example, a taxonomy named ...

WordPress Plugin Development Tutorial Manual - Users, Roles and Capabilities

WordPress users are stored in the wp_user data table. What is a user?In WordPress, every user has at least a username, password, and email address. Once a user account has been created, the user can log in to the backend to access WordPress features and data. Roles and CapabilitiesEach user is assigned a role...

WordPress Plugin Development Tutorial Manual - HTTP API

HTTP is the Hypertext Transfer Protocol, the foundation of the entire Internet, and even though this is the first time we've used HTTP, we probably know more about it than we think we do. HTTP works as follows: Hello server XYZ, do you have the file abc.html? Hello my friend, I have the file, I'm sending it to you now, hooked up. We have a lot of ...

WordPress Plugin Development Tutorial Manual - JavaScript, Ajax and jQuery

JavaScript is an important part of many WordPress plugins, Wordpress built-in some commonly used JavaScript libraries to help us reduce the workload, the most commonly used is jQuery, we can use jQuery in the WordPress plugin to deal with DOM objects, perform Ajax operations and so on. We can use jQuery to manipulate DOM objects and perform Ajax operations in WordPress plugins. jQuery uses j...

WordPress Plugin Development Tutorial Manual - Task Plan WP Cron

Cron is a time-based task scheduling system that can be used on Unix systems.WP-Cron is a time-based task scheduling system that handles tasks in WordPress.Several of the core features of WordPress, such as checking for updates and customizing posting functionality, use the WP-Cron system.WP-Cron works by loading a page at the ... ...

WordPress Plugin Development Tutorial Manual - Internationalization and Localization

What is internationalization? Internationalization is a process of plugin development, after internationalization, the plugin can be easily translated into other languages, internationalization is usually abbreviated as i18n (Internationalization in the first letter i and the last letter n in the middle of 18 letters). Why internationalize WordPress in ...

WordPress Plugin Development Tutorial Manual - Publishing Plugins to WordPress.org

WordPress.org provides free hosting services for every developer who wants to develop plugins, through this service, we can: monitor the number of plugin downloads to get plugin version usage statistics to receive user feedback and evaluation through free forums to provide support for WordPress.org also provides a WordPress plugin API for developers to monitor the ... ...

WordPress Plugin Development Tutorial Manual - Plugin Developer Tools

There are a variety of tools available to help us develop WordPress plugins, some of which are integrated into our development environments (e.g. xdebug, PHPCS, etc.) WordPress also provides some excellent developer tools to help us develop plugins correctly and diagnose problems. Debug Toolbar and Add-onsDebug Bardebug bar 激....