跳转到主要内容

书籍

WordPress REST API 手册

English original:WordPress REST API Handbook (https://docs.cocobook.com/books/wp-rest-api-handbook)
WordPress REST API 手册,介绍概念、请求与扩展方式。

63 页更新于 22 小时前

开始阅读

目录63

  1. 01 Extending the REST API Guides Modifying responses: add fields to REST API response objects using register_meta or register_rest_... 2 个月前
  2. 02 Frequently Asked Questions This page provides solutions to some common questions and problems that may arise while using the API. If y... 2 个月前
  3. 03 Glossary New to REST APIs? Get up to speed with phrases used throughout our documentation. Controller Model-View-Con... 2 个月前
  4. 04 REST API Handbook The WordPress REST API provides an interface for applications to interact with your WordPress site by sendi... 2 个月前
  5. 05 Key Concepts In this page we'll break down some of the key concepts and terms associated with the REST API: Routes & End... 2 个月前
  6. 06 Reference The WordPress REST API is organized around REST, and is designed to have predictable, resource-oriented URL... 2 个月前
  7. 07 Requests Overview While the WordPress REST API may be called internally within other WordPress code via PHP, the RES... 2 个月前
  8. 08 Using the REST API These articles explore the basic structure of the WordPress REST API. Global Parameters: learn about the gl... 2 个月前
  9. 09 Adding Custom Endpoints The WordPress REST API is more than just a set of default routes. It is also a tool for creating custom rou... 2 个月前
  10. 10 Adding REST API Support For Custom Content Types The REST API can create routes for custom post types and custom taxonomies inside of the wp/v2 namespace, ... 2 个月前
  11. 11 Controller Classes Overview To register a new REST route, you must specify a number of callback functions to control endpoint ... 2 个月前
  12. 12 Modifying Responses The default endpoints of the WordPress REST API are designed to return data by default that provides for th... 2 个月前
  13. 13 Routes and Endpoints Overview The REST API provides us a way to match URIs to various resources in our WordPress install. By def... 2 个月前
  14. 14 Schema Overview A schema is metadata that tells us how our data is structured. Most databases implement some form ... 2 个月前
  15. 15 Application Passwords Schema The schema defines all the fields that exist within a application password record. Any response from... 2 个月前
  16. 16 Block Directory Items Schema The schema defines all the fields that exist within a block directory item record. Any response from... 2 个月前
  17. 17 Block Pattern Categories Schema The schema defines all the fields that exist within a block pattern category record. Any response fr... 2 个月前
  18. 18 Block Patterns Schema The schema defines all the fields that exist within a block pattern record. Any response from these ... 2 个月前
  19. 19 Block Revisions Schema The schema defines all the fields that exist within a Block Revision record. Any response from these... 2 个月前
  20. 20 Block Types Schema The schema defines all the fields that exist within a block type record. Any response from these end... 2 个月前
  21. 21 Editor Blocks Schema The schema defines all the fields that exist within a Editor Block record. Any response from these e... 2 个月前
  22. 22 Categories Schema The schema defines all the fields that exist within a category record. Any response from these endpo... 2 个月前
  23. 23 Comments Schema The schema defines all the fields that exist within a comment record. Any response from these endpoi... 2 个月前
  24. 24 Media Schema The schema defines all the fields that exist within a Media Item record. Any response from these end... 2 个月前
  25. 25 Menu Locations Schema The schema defines all the fields that exist within a menu location record. Any response from these ... 2 个月前
  26. 26 Nav_Menu_Item Revisions Schema The schema defines all the fields that exist within a nav_menu_item revision record. Any response fr... 2 个月前
  27. 27 Nav_Menu_Items Schema The schema defines all the fields that exist within a nav_menu_item record. Any response from these ... 2 个月前
  28. 28 Nav_Menus Schema The schema defines all the fields that exist within a nav_menu record. Any response from these endpo... 2 个月前
  29. 29 Navigation Fallbacks Schema The schema defines all the fields that exist within a navigation fallback record. Any response from ... 2 个月前
  30. 30 Page Revisions Schema The schema defines all the fields that exist within a page revision record. Any response from these ... 2 个月前
  31. 31 Pages Schema The schema defines all the fields that exist within a page record. Any response from these endpoints... 2 个月前
  32. 32 Pattern Directory Items Schema The schema defines all the fields that exist within a pattern directory item record. Any response fr... 2 个月前
  33. 33 Plugins Schema The schema defines all the fields that exist within a plugin record. Any response from these endpoin... 2 个月前
  34. 34 Post Revisions Schema The schema defines all the fields that exist within a post revision record. Any response from these ... 2 个月前
  35. 35 Statuses Schema The schema defines all the fields that exist within a status record. Any response from these endpoin... 2 个月前
  36. 36 Types Schema The schema defines all the fields that exist within a type record. Any response from these endpoints... 2 个月前
  37. 37 Posts Schema The schema defines all the fields that exist within a post record. Any response from these endpoints... 2 个月前
  38. 38 Rendered Blocks Schema The schema defines all the fields that exist within a Rendered Block record. Any response from these... 2 个月前
  39. 39 Search Results Schema The schema defines all the fields that exist within a search result record. Any response from these ... 2 个月前
  40. 40 Site Settings Schema The schema defines all the fields that exist within a Site Setting record. Any response from these e... 2 个月前
  41. 41 Sidebars Schema The schema defines all the fields that exist within a sidebar record. Any response from these endpoi... 2 个月前
  42. 42 Tags Schema The schema defines all the fields that exist within a tag record. Any response from these endpoints ... 2 个月前
  43. 43 Taxonomies Schema The schema defines all the fields that exist within a taxonomy record. Any response from these endpo... 2 个月前
  44. 44 Themes Schema The schema defines all the fields that exist within a theme record. Any response from these endpoint... 2 个月前
  45. 45 Users Schema The schema defines all the fields that exist within a user record. Any response from these endpoints... 2 个月前
  46. 46 Widget Types Schema The schema defines all the fields that exist within a widget type record. Any response from these en... 2 个月前
  47. 47 Widgets Schema The schema defines all the fields that exist within a widget record. Any response from these endpoin... 2 个月前
  48. 48 Wp Site Health Tests Schema The schema defines all the fields that exist within a wp site health test record. Any response from ... 2 个月前
  49. 49 Global_Styles Revisions Schema The schema defines all the fields that exist within a global_styles revision record. Any response fr... 2 个月前
  50. 50 Global_Styles Schema The schema defines all the fields that exist within a global_styles record. Any response from these ... 2 个月前
  51. 51 Navigation Revisions Schema The schema defines all the fields that exist within a navigation revision record. Any response from ... 2 个月前
  52. 52 Navigations Schema The schema defines all the fields that exist within a navigation record. Any response from these end... 2 个月前
  53. 53 Template Revisions Schema The schema defines all the fields that exist within a template revision record. Any response from th... 2 个月前
  54. 54 Template_Part Revisions Schema The schema defines all the fields that exist within a template_part revision record. Any response fr... 2 个月前
  55. 55 Template_Parts Schema The schema defines all the fields that exist within a template_part record. Any response from these ... 2 个月前
  56. 56 Templates Schema The schema defines all the fields that exist within a template record. Any response from these endpo... 2 个月前
  57. 57 Authentication Cookie Authentication Cookie authentication is the standard authentication method included with WordPress. ... 2 个月前
  58. 58 Backbone JavaScript Client The REST API includes a JavaScript/Backbone client library. The library provides an interface for the WP RE... 2 个月前
  59. 59 Client Libraries The API can be used from any application by sending basic HTTP requests; however, client libraries simplify... 2 个月前
  60. 60 Discovery When your client talks to an unknown site, you'll need to discover what the site is capable of and how the ... 2 个月前
  61. 61 Global Parameters The API includes a number of global parameters (also called "meta-parameters") which control how the API ha... 2 个月前
  62. 62 Linking and Embedding The WP REST API incorporates hyperlinking throughout the API to allow discoverability and browsability, as ... 2 个月前
  63. 63 Pagination WordPress sites can have a lot of content—far more than you'd want to pull down in a single request. The AP... 2 个月前