跳转到主要内容

书籍

WordPress Common APIs 手册

WordPress Common APIs 手册,汇总常用内部 API。

44 页更新于 2 个月前

开始阅读

目录44

  1. 01 Abilities API The Abilities API is only available for WordPress 6.9 and above. The WordPress Abilities API provides a sta... 2 个月前
  2. 02 Dashboard widgets API Added in WordPress Version 2.7, the Dashboard Widgets API makes it simple to add new widgets to the adminis... 2 个月前
  3. 03 Database API Overview This page lists all holistic pages of a given Database related API. Each covers the functions invo... 2 个月前
  4. 04 Filesystem Overview The Filesystem API, added in WordPress 2.6, was originally created for WordPress’ own automatic up... 2 个月前
  5. 05 Global Variables Introduction WordPress-specific global variables are used throughout WordPress code for various reasons. Al... 2 个月前
  6. 06 Hooks Hooks are a way for one piece of code to interact/modify another piece of code at specific, pre-defined spo... 2 个月前
  7. 07 Common APIs Handbook This handbook serves as a clearinghouse for documentation on all APIs present within the WordPress software... 2 个月前
  8. 08 Internationalization What is internationalization? Internationalization is the process of developing your application in a way i... 2 个月前
  9. 09 Making HTTP requests Very often we need to make HTTP requests from our theme or plugin, for example when we need to fetch data f... 2 个月前
  10. 10 Metadata Overview The Metadata API is a simple and standarized way for retrieving and manipulating metadata of vario... 2 个月前
  11. 11 Options Overview The Options API is a simple and standardized way of storing data in the database. The API makes it... 2 个月前
  12. 12 Plugins Refer Plugin Developer Handbook. 2 个月前
  13. 13 Quicktags Description The Quicktags API allows you to include additional buttons in the Text (HTML) mode of the WordP... 2 个月前
  14. 14 Responsive Images Since WordPress 4.4, native responsive images is supported by including  srcset and  sizes attributes to th... 2 个月前
  15. 15 REST Refer REST API Handbook. 2 个月前
  16. 16 Rewrite Description WordPress allows theme and plugin developers to programmatically specify new, custom rewrite ru... 2 个月前
  17. 17 Settings Overview The Settings API, added in WordPress 2.7, allows admin pages containing settings forms to be manag... 2 个月前
  18. 18 Shortcode The Shortcode API The Shortcode API is a simple set of functions for creating WordPress shortcodes for use ... 2 个月前
  19. 19 Site Health Since WordPress 5.8, developers are allowed to extend Site Health screen. This API allows developers to add... 2 个月前
  20. 20 Theme See Theme Developer Handbook. 2 个月前
  21. 21 Transients Overview This page contains the technical documentation of WordPress Transients API, which offers a simple ... 2 个月前
  22. 22 wp-config.php One of the most important files in your WordPress installation is the wp-config.php file. This file is loc... 2 个月前
  23. 23 XML-RPC XML-RPC API that supersedes the legacy Blogger, MovableType, and metaWeblog APIs. Some clients also exist f... 2 个月前
  24. 24 Getting started The Abilities API was added to WordPress in version 6.9. For backwards compatibility, you can check if the ... 2 个月前
  25. 25 Hooks The Abilities API provides WordPress Action and Filter Hooks that allow developers to monitor and respond t... 2 个月前
  26. 26 PHP reference Registering Categories Before registering abilities, you must register at least one category. Categories he... 2 个月前
  27. 27 REST API endpoints The WordPress Abilities API provides REST endpoints that allow external systems to discover and execute abi... 2 个月前
  28. 28 Action Reference This is a (hopefully) comprehensive list of action hooks available in WordPress version 2.1 and above. For ... 2 个月前
  29. 29 Filter Reference This article contains an extensive (but not 100% comprehensive) list of the filter hooks available for use ... 2 个月前
  30. 30 Internationalization Functions Check the Internationalization Guidelines and learn what each i18n function is for, how to use them, and th... 2 个月前
  31. 31 Internationalization Guidelines In this article, you will learn when and how to use all available i18n functions and the best practices for... 2 个月前
  32. 32 Localization What is localization? Localization describes the process of translating a software and adapting its strings... 2 个月前
  33. 33 Advanced Here are some advanced usage of the HTTP API. Other methods GET and POST are the most commonly used methods... 2 个月前
  34. 34 Authentication Many APIs will require you to make authenticated requests to access some endpoints. A common authentication... 2 个月前
  35. 35 GETting data from an external service GETting data is made incredibly simple in WordPress through the wp_remote_get() function. This function ta... 2 个月前
  36. 36 Performance When you make an HTTP request, your application has to wait for the external server to respond to the reque... 2 个月前
  37. 37 POSTing data to an external service POST is used to send data to the server for the server to act upon in some way. For example, a contact form... 2 个月前
  38. 38 Common Vulnerabilities Security is an ever-changing landscape, and vulnerabilities evolve over time. The following is a discussion... 2 个月前
  39. 39 Validating Data Untrusted data comes from many sources (users, third party sites, even your own database!) and all of it ne... 2 个月前
  40. 40 Escaping Data Escaping output is the process of securing output data by stripping out unwanted data, like malformed HTML ... 2 个月前
  41. 41 Example Complete example using capability checks, data validation, secure input, secure output and nonces: /** * G... 2 个月前
  42. 42 Nonces A nonce is a “number used once” to help protect URLs and forms from certain types of misuse, malicious or o... 2 个月前
  43. 43 Sanitizing Data Untrusted data comes from many sources (users, third party sites, even your own database!) and all of it ne... 2 个月前
  44. 44 User Roles and Capabilities If your plugin allows users to submit data—be it on the Admin or the Public side—it should check for User C... 2 个月前