跳转到主要内容

章节WordPress Developer Handbook

Apis

45 页更新于 16 小时前

开始阅读

本章内容45

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