跳转到主要内容

书籍

WordPress Developer Handbook

WordPress Developer Handbook。内容保持上游原样。

5 章845 页更新于 22 小时前

开始阅读

目录845

  1. 第 1 章 Advanced Administration 71 页
    1. 1.1 Advanced Administration Handbook Welcome to the WordPress Advanced Administration Handbook! Here you will find WordPress advanced documentat... 22 小时前
    2. 1.2 Before You Install Before installing WordPress, you need to check that your web hosting provider fulfills the necessary softwa... 22 小时前
    3. 1.3 Server configuration Server configuration covers the hosting environment that runs WordPress. This includes the web server, file... 22 小时前
    4. 1.4 WordPress Multisite / Network WordPress Multisite is a feature of WordPress that enables you to create several instances of WordPress man... 22 小时前
    5. 1.5 Themes The Theme refers to the underlying technologies and components that come together to deliver the visual des... 22 小时前
    6. 1.6 Security The goal of the page is to inform users who manage a WordPress site about general security best practices b... 22 小时前
    7. 1.7 Debugging WordPress Debugging is an essential part of website development and a crucial step in ensuring a smooth and reliable ... 22 小时前
    8. 1.8 Resources for Building on WordPress As you design your WordPress theme or build a plugin, you will be using a combination of HTML, CSS, PHP, an... 22 小时前
    9. 1.9 Creating Database for WordPress If you are installing WordPress on your own web server, follow one of the below instructions to create your... 22 小时前
    10. 1.10 How to install WordPress WordPress is well-known for its ease of installation. Under most circumstances, installing WordPress is a v... 22 小时前
    11. 1.11 Running a Development Copy of WordPress Having a development instance of WordPress is a good way to update, develop, and modify a website without i... 22 小时前
    12. 1.12 Installing WordPress in your language Note: This article is about displaying the WordPress Administrative “back-end” in your language. If you are... 22 小时前
    13. 1.13 Installing Multiple WordPress Instances If you need multiple WordPress instances, there are three types of installations based on system architectu... 22 小时前
    14. 1.14 Install WordPress at popular providers Installing WordPress at Atlantic.Net How to Install WordPress on a Ubuntu 14.04 LTS Cloud Server You can al... 22 小时前
    15. 1.15 Changing File Permissions On computer file systems, different files and directories have permissions that specify who and what can re... 22 小时前
    16. 1.16 Finding Server Info What version of PHP are you using? What server software is your site host using? What version of MySQL do y... 22 小时前
    17. 1.17 Giving WordPress Its Own Directory Many people want WordPress to power their website’s root (e.g. https://example.com) but they don’t want all... 22 小时前
    18. 1.18 Configuring Wildcard Subdomains Wildcard subdomains are useful to allow end users of a domain-based WordPress multisite network to create n... 22 小时前
    19. 1.19 Emptying a Database Table Plugins which generate site statistics for you can rapidly create large amounts of data — every visitor cau... 22 小时前
    20. 1.20 Web servers The web server is a piece of software that accepts user web requests and serves them the appropriate result... 22 小时前
    21. 1.21 Control Panels WP Toolkit for cPanel & WHM and Plesk WP Toolkit is a single management interface that allows you to instal... 22 小时前
    22. 1.22 Mail This page details the philosphy, operations, and the recommended practices for setting up the local mailing... 22 小时前
    23. 1.23 Nginx While the LAMP stack (Linux + Apache + MySQL + PHP) is very popular for powering WordPress, it is also poss... 22 小时前
    24. 1.24 Apache HTTPD / .htaccess .htaccess The .htaccess is a distributed configuration file, and is how Apache handles configuration chang... 22 小时前
    25. 1.25 Editing wp-config.php One of the most important files in your WordPress installation is the wp-config.php file. This file is loc... 22 小时前
    26. 1.26 Site Architecture (v1.5) The following is a description of the general site architecture for WordPress 1.5. WordPress theme develope... 22 小时前
    27. 1.27 Cookies WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There... 22 小时前
    28. 1.28 Update Services Update Services are tools you can use to let other people know you’ve updated your blog. WordPress automati... 22 小时前
    29. 1.29 Editing Files There are times when you will need to edit WordPress files, especially if you want to change your WordPress... 22 小时前
    30. 1.30 CSS As of WordPress 6.2, you can add custom CSS in the Styles area of the Site Editor. Learn more about the sit... 22 小时前
    31. 1.31 WordPress Feeds WordPress Built-in Feeds By default, WordPress comes with various feeds. They are generated by template tag... 22 小时前
    32. 1.32 Multilingual WordPress WordPress currently does not support a bilingual or multilingual blog out-of-the-box. However, plugins deve... 22 小时前
    33. 1.33 oEmbed The easy embedding feature is mostly powered by oEmbed, a protocol for consumers (such as your blog) to ask... 22 小时前
    34. 1.34 Loopbacks A loopback request is when WordPress tries to connect back to its own site. WordPress uses loopback request... 22 小时前
    35. 1.35 Common WordPress errors If you are encountering a WordPress error message or white screen, don’t panic. Someone has likely encounte... 22 小时前
    36. 1.36 Post Formats Intro Post Formats is a theme feature introduced with Version 3.1. A Post Format is a piece of meta informa... 22 小时前
    37. 1.37 Importing Content Using the WordPress Import tool, you can import content into your site from another WordPress site, or from... 22 小时前
    38. 1.38 Updating WordPress using FTP FTP Clients There are two common ways to upload and manage files on your site: Use the file manager provide... 22 小时前
    39. 1.39 phpMyAdmin What is phpMyAdmin? An administrator’s tool of sorts, phpMyAdmin is a PHP script meant for giving users the... 22 小时前
    40. 1.40 Upgrading WordPress Upgrading WordPress – Extended Instructions This page contains a more detailed version of the upgrade instr... 22 小时前
    41. 1.41 Migrating WordPress Changing The Site URL On the Settings -> General screen in a single site installation of WordPress, there ... 22 小时前
    42. 1.42 Using FileZilla FileZilla is an open-source file transfer client and server. Both the client and the server are available f... 22 小时前
    43. 1.43 Before You Create A Network This section outlines some requirements to consider before you begin creating a multisite network. Do you r... 22 小时前
    44. 1.44 Create A Network You have the ability to create a network of sites by using the multisite feature. This article contains ins... 22 小时前
    45. 1.45 WordPress Multisite Domain Mapping WordPress multisite subsites may be mapped to a non-network top-level domain. This means a site created as ... 22 小时前
    46. 1.46 Multisite Network Administration Once you’ve created a Multisite Network, there are some additional things you might need to know about adva... 22 小时前
    47. 1.47 Network Admin Network Admin The Network Admin Screen is the central access point to the various options necessary to admi... 22 小时前
    48. 1.48 Migrate WordPress sites into WordPress Multisite This tutorial explains how to migrate multiple WordPress installs to a WordPress multisite install. You can... 22 小时前
    49. 1.49 Network Admin Settings Screen The Network Admin Settings is where a network admin sets and changes settings for the network as a whole. T... 22 小时前
    50. 1.50 Must-Use Plugins Must-use plugins, also known as mu-plugins, are plugins installed in a special directory inside the content... 22 小时前
    51. 1.51 File Editor Screen Among the many user-editable files in a standard WordPress installation are the Plugins files. Though it sh... 22 小时前
    52. 1.52 Logging In This guide covers WordPress authentication – accessing your site, managing login sessions, and resetting pa... 22 小时前
    53. 1.53 Two Step Authentication Also known as Two-Factor Authentication. Two-step authentication is showing up all over the Internet as mor... 22 小时前
    54. 1.54 Backups WordPress Backups Note: Want to skip the hard stuff? Skip to Automated Solutions such as WordPress Plugins ... 22 小时前
    55. 1.55 HTTPS HTTPS is an encrypted communication protocol — essentially, a more secure way of browsing the web, since yo... 22 小时前
    56. 1.56 Brute Force Attacks A brute force attack is the simplest way to break in: an attacker repeatedly tries username/password combin... 22 小时前
    57. 1.57 Hardening WordPress Security in WordPress is taken very seriously, but as with any other system there are potential security is... 22 小时前
    58. 1.58 Monitoring Site monitoring systems and services can notify you when your site isn’t working properly. They can often c... 22 小时前
    59. 1.59 Application Passwords Application Passwords are a WordPress feature that lets you generate revocable, per-application credentials... 22 小时前
    60. 1.60 Backing Up Your Database Backing Up Your Database It is strongly recommended that you backup your database at regular intervals and ... 22 小时前
    61. 1.61 Backing Up Your WordPress Files Backing Up Your WordPress Files There are two parts to backing up your WordPress site: Database and Files. ... 22 小时前
    62. 1.62 Display Errors What is display_errors? display_errors is a directive found in PHP, found in the php.ini file. With this op... 22 小时前
    63. 1.63 Cache This article is part of a series on WordPress Optimization. WordPress caching is the fastest way to improve... 22 小时前
    64. 1.64 Optimization Whether you run a high traffic WordPress installation or a small blog on a low cost shared host, you should... 22 小时前
    65. 1.65 PHP Optimization PHP PHP (PHP: Hypertext Preprocessor) is a popular programming language on the Internet. PHP turns dynamic ... 22 小时前
    66. 1.66 Debugging in WordPress Debugging PHP code is part of any project, but WordPress comes with specific debugging systems designed to ... 22 小时前
    67. 1.67 Debugging a WordPress Network Debugging a WordPress Network If you have reached this page, chances are you have received an error in your... 22 小时前
    68. 1.68 Using Your Browser to Diagnose JavaScript Errors Interactive functionality in WordPress often relies on JavaScript. If you encounter broken menus, metaboxes... 22 小时前
    69. 1.69 Test Driving WordPress There are times when you need to test changes to your WordPress powered site out of the public eye. Making ... 22 小时前
    70. 1.70 Version Control Version control is a way of tracking the changes made to files over time by different people, such as the c... 22 小时前
    71. 1.71 FAQ Troubleshooting Why can’t I see my posts? All I see is Sorry, no posts match your criteria? Clearing your browser cache and... 22 小时前
  2. 第 2 章 Apis 45 页
    1. 2.1 Common APIs Handbook This handbook serves as a clearinghouse for documentation on all APIs present within the WordPress software... 22 小时前
    2. 2.2 Dashboard widgets API Added in WordPress Version 2.7, the Dashboard Widgets API makes it simple to add new widgets to the adminis... 22 小时前
    3. 2.3 Database API Overview This page lists all holistic pages of a given Database related API. Each covers the functions invo... 22 小时前
    4. 2.4 Filesystem Overview The Filesystem API, added in WordPress 2.6, was originally created for WordPress’ own automatic up... 22 小时前
    5. 2.5 Global Variables Introduction WordPress-specific global variables are used throughout WordPress code for various reasons. Al... 22 小时前
    6. 2.6 Metadata Overview The Metadata API is a simple and standarized way for retrieving and manipulating metadata of vario... 22 小时前
    7. 2.7 Options Overview The Options API is a simple and standardized way of storing data in the database. The API makes it... 22 小时前
    8. 2.8 Plugins Refer Plugin Developer Handbook. 22 小时前
    9. 2.9 Quicktags Description The Quicktags API allows you to include additional buttons in the Text (HTML) mode of the WordP... 22 小时前
    10. 2.10 REST Refer REST API Handbook. 22 小时前
    11. 2.11 Rewrite Description WordPress allows theme and plugin developers to programmatically specify new, custom rewrite ru... 22 小时前
    12. 2.12 Settings Overview The Settings API, added in WordPress 2.7, allows admin pages containing settings forms to be manag... 22 小时前
    13. 2.13 Shortcode The Shortcode API The Shortcode API is a simple set of functions for creating WordPress shortcodes for use ... 22 小时前
    14. 2.14 Theme See Theme Developer Handbook. 22 小时前
    15. 2.15 Transients Overview This page contains the technical documentation of WordPress Transients API, which offers a simple ... 22 小时前
    16. 2.16 XML-RPC XML-RPC API that supersedes the legacy Blogger, MovableType, and metaWeblog APIs. Some clients also exist f... 22 小时前
    17. 2.17 Internationalization What is internationalization? Internationalization is the process of developing your application in a way i... 22 小时前
    18. 2.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... 22 小时前
    19. 2.19 Responsive Images Since WordPress 4.4, native responsive images is supported by including  srcset and  sizes attributes to th... 22 小时前
    20. 2.20 Site Health Since WordPress 5.8, developers are allowed to extend Site Health screen. This API allows developers to add... 22 小时前
    21. 2.21 wp-config.php One of the most important files in your WordPress installation is the wp-config.php file. This file is loc... 22 小时前
    22. 2.22 Security Congratulations, your code works! But is it safe? The WordPress development team takes security seriously. ... 22 小时前
    23. 2.23 Hooks Hooks are a way for one piece of code to interact/modify another piece of code at specific, pre-defined spo... 22 小时前
    24. 2.24 Abilities API The Abilities API is only available for WordPress 6.9 and above. The WordPress Abilities API provides a sta... 22 小时前
    25. 2.25 Internationalization Functions Check the Internationalization Guidelines and learn what each i18n function is for, how to use them, and th... 22 小时前
    26. 2.26 Internationalization Guidelines In this article, you will learn when and how to use all available i18n functions and the best practices for... 22 小时前
    27. 2.27 Localization What is localization? Localization describes the process of translating a software and adapting its strings... 22 小时前
    28. 2.28 Performance When you make an HTTP request, your application has to wait for the external server to respond to the reque... 22 小时前
    29. 2.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... 22 小时前
    30. 2.30 GETting data from an external service GETting data is made incredibly simple in WordPress through the wp_remote_get() function. This function ta... 22 小时前
    31. 2.31 Advanced Here are some advanced usage of the HTTP API. Other methods GET and POST are the most commonly used methods... 22 小时前
    32. 2.32 Authentication Many APIs will require you to make authenticated requests to access some endpoints. A common authentication... 22 小时前
    33. 2.33 Sanitizing Data Untrusted data comes from many sources (users, third party sites, even your own database!) and all of it ne... 22 小时前
    34. 2.34 Validating Data Untrusted data comes from many sources (users, third party sites, even your own database!) and all of it ne... 22 小时前
    35. 2.35 Escaping Data Escaping output is the process of securing output data by stripping out unwanted data, like malformed HTML ... 22 小时前
    36. 2.36 Nonces A nonce is a “number used once” to help protect URLs and forms from certain types of misuse, malicious or o... 22 小时前
    37. 2.37 Example Complete example using capability checks, data validation, secure input, secure output and nonces: /** * G... 22 小时前
    38. 2.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... 22 小时前
    39. 2.39 Common Vulnerabilities Security is an ever-changing landscape, and vulnerabilities evolve over time. The following is a discussion... 22 小时前
    40. 2.40 Filter Reference This article contains an extensive (but not 100% comprehensive) list of the filter hooks available for use ... 22 小时前
    41. 2.41 Action Reference This is a (hopefully) comprehensive list of action hooks available in WordPress version 2.1 and above. For ... 22 小时前
    42. 2.42 Getting started The Abilities API was added to WordPress in version 6.9. For backwards compatibility, you can check if the ... 22 小时前
    43. 2.43 PHP reference Registering Categories Before registering abilities, you must register at least one category. Categories he... 22 小时前
    44. 2.44 REST API endpoints The WordPress Abilities API provides REST endpoints that allow external systems to discover and execute abi... 22 小时前
    45. 2.45 Hooks The Abilities API provides WordPress Action and Filter Hooks that allow developers to monitor and respond t... 22 小时前
  3. 第 3 章 Blocks 578 页
    1. 3.1 Block Editor Handbook Welcome to the Block Editor Handbook. The Block Editor is a modern paradigm for WordPress site building and... 22 小时前
    2. 3.2 How-to Guides The new editor is highly flexible, like most of WordPress. You can build custom blocks, modify the editor’s... 22 小时前
    3. 3.3 Reference Guides Block API Reference Annotations API Versions Attributes Context Deprecation Edit and Save Patterns Registra... 22 小时前
    4. 3.4 Explanations Architecture Key Concepts Data Format And Data Flow Modularity and WordPress Packages. Block Editor Perform... 22 小时前
    5. 3.5 Contributor Guide Welcome to the Gutenberg Project Contributor Guide. This guide is here to help you get setup and start cont... 22 小时前
    6. 3.6 Getting Started Welcome to the Getting Started documentation. From setting up your development environment and building you... 22 小时前
    7. 3.7 Get started with wp-env The @wordpress/env package ( wp-env) lets you set up a local WordPress environment (site) for building and ... 22 小时前
    8. 3.8 Node.js development environment When developing for the Block Editor, you will need Node.js development tools along with a code editor and ... 22 小时前
    9. 3.9 Get started with create-block Custom blocks for the Block Editor in WordPress are typically registered using plugins and are defined thro... 22 小时前
    10. 3.10 Get started with wp-scripts The @wordpress/scripts package, commonly referred to as wp-scripts, is a set of configuration files and s... 22 小时前
    11. 3.11 Notices Notices are informational UI displayed near the top of admin pages. WordPress core, themes, and plugins all... 22 小时前
    12. 3.12 Blocks The purpose of this tutorial is to step through the fundamentals of creating a new block type. Beginning wi... 22 小时前
    13. 3.13 Feature Flags ‘Feature flags’ are variables that allow you to prevent specific code in the Gutenberg project from being s... 22 小时前
    14. 3.14 Development Platform The Gutenberg Project is not only building a better editor for WordPress, but also creating a platform to b... 22 小时前
    15. 3.15 Accessibility Accessibility documentation for developers working on the Gutenberg Project. For more information on access... 22 小时前
    16. 3.16 Internationalization What is internationalization? Internationalization is the process to provide multiple language support to s... 22 小时前
    17. 3.17 Themes The block editor provides a number of options for theme designers and developers, to interact with it, incl... 22 小时前
    18. 3.18 Widgets The Gutenberg plugin replaces the Widgets Editor screen in WP Admin with a new screen based on the WordPres... 22 小时前
    19. 3.19 Thunks in Core-Data Gutenberg 11.6 added support for thunks. You can think of thunks as functions that can be dispatched: // ac... 22 小时前
    20. 3.20 Formatting Toolbar API Overview The Format API makes it possible for developers to add custom buttons to the formatting toolbar an... 22 小时前
    21. 3.21 Plugin Sidebar Overview How to add a sidebar to your plugin. A sidebar is the region to the far right of the editor. Your ... 22 小时前
    22. 3.22 Meta Boxes Overview Prior to the block editor, custom meta boxes were used to extend the editor. Now there are new way... 22 小时前
    23. 3.23 Create your First App with Gutenberg Data This tutorial aims to get you comfortable with the Gutenberg data layer. It guides you through building a s... 22 小时前
    24. 3.24 Curating the Editor Experience Curating the editing experience in WordPress is important because it allows you to streamline the editing p... 22 小时前
    25. 3.25 Propagating updates for block types This resource seeks to offer direction for those needing to provide updates to content, whether in a templa... 22 小时前
    26. 3.26 Enqueueing assets in the Editor This guide is designed to be the definitive reference for enqueueing assets (scripts and styles) in the Edi... 22 小时前
    27. 3.27 Client-Side Media Processing Overview Client-side media processing handles image compression, resizing, format conversion, rotation, and... 22 小时前
    28. 3.28 Use styles and stylesheets Overview A block typically inserts markup (HTML) into post content that you want to style in some way. This... 22 小时前
    29. 3.29 Creating dynamic blocks Dynamic blocks are blocks that build their structure and content on the fly when the block is rendered on t... 22 小时前
    30. 3.30 Nested Blocks: Using InnerBlocks You can create a single block that nests other blocks using the InnerBlocks component. This is used in the ... 22 小时前
    31. 3.31 Extending the Query Loop block The Query Loop block is a powerful tool that allows users to cycle through a determined list of posts and d... 22 小时前
    32. 3.32 Building a custom block editor The WordPress block editor is a powerful tool that allows you to create and format content in various ways.... 22 小时前
    33. 3.33 Block Design The following are best practices for designing a new block, with recommendations and detailed descriptions ... 22 小时前
    34. 3.34 Animation Animation can help reinforce a sense of hierarchy and spatial orientation. This document goes into principl... 22 小时前
    35. 3.35 Resources Figma The WordPress Design team uses Figma to collaborate and share work. If you’d like to contribute, you ... 22 小时前
    36. 3.36 Block API Reference Blocks are the fundamental element of the editor. They are the primary way in which plugins and themes can ... 22 小时前
    37. 3.37 Hooks Reference Hooks are a way for one piece of code to interact/modify another piece of code. They provide one way for pl... 22 小时前
    38. 3.38 SlotFills Reference Slot and Fill are components that have been exposed to allow developers to inject items into some predefine... 22 小时前
    39. 3.39 RichText Reference RichText is a component that allows developers to render a contenteditable input, providing users with the... 22 小时前
    40. 3.40 Component Reference This package includes a library of generic WordPress components to be used for creating common UI elements ... 22 小时前
    41. 3.41 Package Reference WordPress exposes a list of JavaScript packages and tools for WordPress development. For information on cre... 22 小时前
    42. 3.42 Data Module Reference core: WordPress Core Data core/annotations: Annotations core/block-directory: Block directory core/block-ed... 22 小时前
    43. 3.43 Core Blocks Reference This page lists the blocks included in the block-library package. Items marked with a strikeout ( strikeout... 22 小时前
    44. 3.44 Theme.json Reference This reference guide lists the settings and style properties defined in the theme.json schema. See the them... 22 小时前
    45. 3.45 Interactivity API Reference The Interactivity API, introduced in WordPress 6.5, provides a standard way for developers to add interacti... 22 小时前
    46. 3.46 View Configuration Reference DataViews-powered admin screens (such as the Site Editor’s Pages, Templates, Template Parts, and Patterns s... 22 小时前
    47. 3.47 Edit and Save When registering a block with JavaScript on the client, the edit and save functions provide the interface... 22 小时前
    48. 3.48 Attributes Block attributes provide information about the data stored by a block. For example, rich content, a list of... 22 小时前
    49. 3.49 Templates A block template is defined as a list of block items. Such blocks can have predefined attributes, placehold... 22 小时前
    50. 3.50 Annotations Note: This API is experimental, that means it is subject to non-backward compatible changes or removal in a... 22 小时前
    51. 3.51 API Versions This document lists the changes made between the different API versions. Version 3 (>= WordPress 6.3) WordP... 22 小时前
    52. 3.52 Context Block context is a feature which enables ancestor blocks to provide values which can be consumed by descend... 22 小时前
    53. 3.53 Deprecation This page provides a comprehensive guide to the principles and usage of the Deprecation API. For an introdu... 22 小时前
    54. 3.54 Metadata in block.json Starting with the WordPress 5.8 release, we recommend using the block.json metadata file as the canonical ... 22 小时前
    55. 3.55 Patterns Block Patterns are predefined block layouts available from the patterns tab of the block inserter. Once ins... 22 小时前
    56. 3.56 Registration Block registration API reference. You can use the functions documented on this page to register a block wit... 22 小时前
    57. 3.57 Supports Block Supports is the API that allows a block to declare support for certain features. Opting into any of t... 22 小时前
    58. 3.58 Transforms Block Transforms is the API that allows a block to be transformed from and to other blocks, as well as from... 22 小时前
    59. 3.59 Variations The Block Variations API allows you to define multiple versions (variations) of a block. A block variation ... 22 小时前
    60. 3.60 Styles Block Styles allow alternative styles to be applied to existing blocks. They work by adding a className to ... 22 小时前
    61. 3.61 Selectors Block Selectors is the API that allows blocks to customize the CSS selector used when their styles are gene... 22 小时前
    62. 3.62 Bindings Block Bindings API is only available for WordPress 6.5 and above. The Block Bindings API lets you “bind” dy... 22 小时前
    63. 3.63 Block Filters WordPress exposes several APIs that allow you to modify the behavior of existing blocks. Registration Block... 22 小时前
    64. 3.64 Editor Hooks WordPress exposes several APIs that allow you to modify the editor experience. Editor settings One of the m... 22 小时前
    65. 3.65 Parser Filters When the editor is interacting with blocks, these are stored in memory as data structures comprising a few ... 22 小时前
    66. 3.66 Autocomplete The editor.Autocomplete.completers filter is for extending and overriding the list of autocompleters used ... 22 小时前
    67. 3.67 i18n Filters The i18n functions ( __(), _x(), _n() and _nx()) provide translations of strings for use in your code. T... 22 小时前
    68. 3.68 Global Styles Filters WordPress 6.1 has introduced some server-side filters to hook into the theme.json data provided at the dif... 22 小时前
    69. 3.69 MainDashboardButton This slot allows replacing the default main dashboard button in the post editor. It is no longer available ... 22 小时前
    70. 3.70 PluginBlockSettingsMenuItem This slot allows for adding a new item into the More Options area. This will either appear in the controls ... 22 小时前
    71. 3.71 PluginDocumentSettingPanel This SlotFill allows registering a UI to edit Document settings. Available Props name string: A string ide... 22 小时前
    72. 3.72 PluginMoreMenuItem This slot will add a new item to the More Tools & Options section. Example import { registerPlugin } from '... 22 小时前
    73. 3.73 PluginPostPublishPanel This slot allows for injecting items into the bottom of the post-publish panel that appears after a post is... 22 小时前
    74. 3.74 PluginPostStatusInfo This slots allows for the insertion of items in the Summary panel of the document sidebar. Example import {... 22 小时前
    75. 3.75 PluginPrePublishPanel This slot allows for injecting items into the bottom of the pre-publish panel that appears to confirm publi... 22 小时前
    76. 3.76 PluginSidebar This slot allows adding items to the tool bar of either the Post or Site editor screens. Using this slot wi... 22 小时前
    77. 3.77 PluginSidebarMoreMenuItem This slot is used to allow the opening of a <PluginSidebar /> panel from the Options dropdown. When a <Pl... 22 小时前
    78. 3.78 AlignmentMatrixControl See the WordPress Storybook for more detailed, interactive documentation. AlignmentMatrixControl components... 22 小时前
    79. 3.79 AnglePickerControl See the WordPress Storybook for more detailed, interactive documentation. AnglePickerControl is a React com... 22 小时前
    80. 3.80 Animate This component is deprecated. Write your own CSS animations instead, preferably using the motion tokens ava... 22 小时前
    81. 3.81 Autocomplete This component is used to provide autocompletion support for a child input component. Props The following p... 22 小时前
    82. 3.82 BaseControl See the WordPress Storybook for more detailed, interactive documentation. BaseControl is a low-level compon... 22 小时前
    83. 3.83 BoxControl See the WordPress Storybook for more detailed, interactive documentation. A control that lets users set val... 22 小时前
    84. 3.84 ButtonGroup This component is deprecated. Use `ToggleGroupControl` instead. ButtonGroup can be used to group any relate... 22 小时前
    85. 3.85 Button See the WordPress Storybook for more detailed, interactive documentation. Lets users take actions and make ... 22 小时前
    86. 3.86 Card Card provides a flexible and extensible content container. Usage Card also provides a convenient set of sub... 22 小时前
    87. 3.87 CheckboxControl Checkboxes allow the user to select one or more items from a set. Design guidelines Usage When to use check... 22 小时前
    88. 3.88 ClipboardButton This component is deprecated. Please use the `useCopyToClipboard` hook from the `@wordpress/compose` packag... 22 小时前
    89. 3.89 ColorIndicator ColorIndicator is a React component that renders a specific color in a circle. It’s often used to summarize... 22 小时前
    90. 3.90 ColorPalette ColorPalette allows the user to pick a color from a list of pre-defined color entries. Usage import { useSt... 22 小时前
    91. 3.91 ColorPicker ColorPicker is a color picking component based on react-colorful. It lets you pick a color visually or by ... 22 小时前
    92. 3.92 ComboboxControl ComboboxControl is an enhanced version of a SelectControl, with the addition of being able to search for o... 22 小时前
    93. 3.93 CustomSelectControl CustomSelectControl allows users to select an item from a single-option menu just like SelectControl, with... 22 小时前
    94. 3.94 Dashicon Usage import { Dashicon } from '@wordpress/components'; const MyDashicon = () => ( <div> <Dashi... 22 小时前
    95. 3.95 DateTime DateTimePicker is a React component that renders a calendar and clock for date and time selection. The cale... 22 小时前
    96. 3.96 DimensionControl This component is deprecated. This feature is still experimental. “Experimental” means this is an early imp... 22 小时前
    97. 3.97 Disabled Disabled is a component which disables descendant tabbable elements and prevents pointer interaction. Usage... 22 小时前
    98. 3.98 Draggable Draggable is a Component that provides a way to set up a cross-browser (including IE) customizable drag ima... 22 小时前
    99. 3.99 DropZone DropZone is a component creating a drop zone area taking the full size of its parent element. It supports d... 22 小时前
    100. 3.100 DropdownMenu The DropdownMenu displays a list of actions (each contained in a MenuItem, MenuItemsChoice, or MenuGroup) i... 22 小时前
    101. 3.101 Dropdown Dropdown is a React component to render a button that opens a floating content modal when clicked. This com... 22 小时前
    102. 3.102 ExternalLink Link to an external resource. Usage import { ExternalLink } from '@wordpress/components'; const MyExternalL... 22 小时前
    103. 3.103 Flex Flex is a primitive layout component that adaptively aligns child content horizontally or vertically. Flex... 22 小时前
    104. 3.104 FocalPointPicker Focal Point Picker is a component which creates a UI for identifying the most important visual point of an ... 22 小时前
    105. 3.105 FocusableIframe Deprecated <FocusableIframe /> is a component rendering an iframe element enhanced to support focus events... 22 小时前
    106. 3.106 FontSizePicker FontSizePicker is a React component that renders a UI that allows users to select a font size. The componen... 22 小时前
    107. 3.107 FormFileUpload See the WordPress Storybook for more detailed, interactive documentation. FormFileUpload allows users to se... 22 小时前
    108. 3.108 FormToggle This component is deprecated. Use Switch from @wordpress/ui instead. See the migration guide. FormToggle ... 22 小时前
    109. 3.109 FormTokenField A FormTokenField is a field similar to the tags and categories fields in the interim editor chrome, or the... 22 小时前
    110. 3.110 Guide Guide is a React component that renders a user guide in a modal. The guide consists of several pages which ... 22 小时前
    111. 3.111 NavigateRegions navigateRegions is a React higher-order component adding keyboard navigation to switch between the differen... 22 小时前
    112. 3.112 HigherOrder This directory includes a library of generic Higher Order React Components. Learn more about Higher Order C... 22 小时前
    113. 3.113 WithConstrainedTabbing withConstrainedTabbing is a React higher-order component adding the ability to constrain keyboard navigatio... 22 小时前
    114. 3.114 WithFallbackStyles Usage import { withFallbackStyles, Button } from '@wordpress/components'; const { getComputedStyle } = wind... 22 小时前
    115. 3.115 WithFilters withFilters is a part of Native Gutenberg Extensibility. It is also a React higher-order component. Wrappin... 22 小时前
    116. 3.116 WithFocusOutside withFocusOutside is a React higher-order component to enable behavior to occur when focus leaves an element... 22 小时前
    117. 3.117 WithFocusReturn withFocusReturn is a higher-order component used typically in scenarios of short-lived elements (modals, dr... 22 小时前
    118. 3.118 WithNotices withNotices is a React higher-order component used typically in adding the ability to post notice messages ... 22 小时前
    119. 3.119 WithSpokenMessages Usage import { withSpokenMessages, Button } from '@wordpress/components'; const MyComponentWithSpokenMessag... 22 小时前
    120. 3.120 Icon See the WordPress Storybook for more detailed, interactive documentation. Renders a raw icon without any in... 22 小时前
    121. 3.121 InputControl This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    122. 3.122 IsolatedEventContainer Deprecated This is a container that prevents certain events from propagating outside of the container. This... 22 小时前
    123. 3.123 KeyboardShortcuts <KeyboardShortcuts /> is a component which handles keyboard sequences during the lifetime of the rendering ... 22 小时前
    124. 3.124 MenuGroup MenuGroup wraps a series of related MenuItem components into a common section. Design guidelines Usage A ... 22 小时前
    125. 3.125 MenuItem MenuItem is a component which renders a button intended to be used in combination with the DropdownMenu com... 22 小时前
    126. 3.126 MenuItemsChoice MenuItemsChoice functions similarly to a set of MenuItems, but allows the user to select one option from a... 22 小时前
    127. 3.127 Modal Modals give users information and choices related to a task they’re trying to accomplish. They can contain ... 22 小时前
    128. 3.128 NavigableContainer NavigableContainer is a React component to render a container navigable using the keyboard. Only things tha... 22 小时前
    129. 3.129 Navigation This component is deprecated. Consider using `Navigator` instead. This feature is still experimental. “Expe... 22 小时前
    130. 3.130 Notice Use Notices to communicate prominent messages to the user. Design guidelines A Notice displays a succinct m... 22 小时前
    131. 3.131 NumberControl This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    132. 3.132 Panel Panels expand and collapse multiple sections of content. The Panel family is intended for the block inspec... 22 小时前
    133. 3.133 Placeholder Usage import { Placeholder } from '@wordpress/components'; import { more } from '@wordpress/icons'; const M... 22 小时前
    134. 3.134 Popover Popover renders its content in a floating modal. If no explicit anchor is passed via props, it anchors to i... 22 小时前
    135. 3.135 QueryControls Development Guidelines Usage import { useState } from 'react'; import { QueryControls } from '@wordpress/co... 22 小时前
    136. 3.136 RadioControl Use radio buttons when you want users to select one option from a set, and you want to show them all the av... 22 小时前
    137. 3.137 RadioGroup This component is deprecated. Consider using `RadioControl` or `ToggleGroupControl` instead. This feature i... 22 小时前
    138. 3.138 RangeControl RangeControls are used to make selections from a range of incremental values. Design guidelines Anatomy A R... 22 小时前
    139. 3.139 ResizableBox ResizableBox is a wrapper around the re-resizable package with pre-defined classes and styles. Usage Most o... 22 小时前
    140. 3.140 ResizeTooltip ResizeTooltip displays the dimensions of an element whenever the width or height of the element changes. Us... 22 小时前
    141. 3.141 ResponsiveWrapper This component is deprecated. Use the CSS aspect-ratio property instead. A wrapper component that maintain... 22 小时前
    142. 3.142 Sandbox This component provides an isolated environment for arbitrary HTML via iframes. Usage import { SandBox } fr... 22 小时前
    143. 3.143 ScrollLock ScrollLock is a content-free React component for declaratively preventing scroll bleed from modal UI to the... 22 小时前
    144. 3.144 SelectControl SelectControl allow users to select from a single or multiple option menu. It functions as a wrapper around... 22 小时前
    145. 3.145 SlotFill Slot and Fill are a pair of components which enable developers to render React UI elsewhere in a React ele... 22 小时前
    146. 3.146 Snackbar Use Snackbars to communicate low priority, non-interruptive messages to the user. Design guidelines A Snack... 22 小时前
    147. 3.147 Spinner Spinner is a component used to notify users that their action is being processed. Usage import { Spinner } ... 22 小时前
    148. 3.148 TabPanel TabPanel is a React component to render an ARIA-compliant TabPanel. TabPanels organize content across diffe... 22 小时前
    149. 3.149 TextControl TextControl components let users enter and edit text. Design guidelines Usage When to use TextControls Text... 22 小时前
    150. 3.150 TextHighlight Highlights occurrences of a given string within another string of text. Wraps each match with a <mark> tag... 22 小时前
    151. 3.151 Text This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    152. 3.152 TextareaControl TextareaControls are TextControls that allow for multiple lines of text, and wrap overflow text onto a new ... 22 小时前
    153. 3.153 ToggleControl ToggleControl is used to generate a toggle user interface. Usage Render a user interface to change fixed ba... 22 小时前
    154. 3.154 ToolbarButton ToolbarButton can be used to add actions to a toolbar, usually inside a Toolbar or ToolbarGroup when used t... 22 小时前
    155. 3.155 ToolbarGroup A ToolbarGroup can be used to create subgroups of controls inside a Toolbar. Usage import { Toolbar, Toolba... 22 小时前
    156. 3.156 ToolbarItem A ToolbarItem is a generic headless component that can be used to make any custom component a Toolbar item.... 22 小时前
    157. 3.157 Toolbar Toolbar can be used to group related options. To emphasize groups of related icon buttons, a toolbar should... 22 小时前
    158. 3.158 Tooltip This component is deprecated. Use Tooltip from @wordpress/ui instead. Tooltip is a React component to ren... 22 小时前
    159. 3.159 TreeGrid This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    160. 3.160 TreeSelect See the WordPress Storybook for more detailed, interactive documentation. Generates a hierarchical select i... 22 小时前
    161. 3.161 UnitControl This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    162. 3.162 VisuallyHidden VisuallyHidden is a component used to render text intended to be visually hidden, but will show for alterna... 22 小时前
    163. 3.163 DuotonePicker Usage import { useState } from 'react'; import { DuotonePicker, DuotoneSwatch } from '@wordpress/components... 22 小时前
    164. 3.164 FlexBlock A layout component to contain items of a fixed width within Flex. Usage See flex/README.md#usage for how ... 22 小时前
    165. 3.165 FlexItem A layout component to contain items of a fixed width within Flex. Usage See flex/README.md#usage for how ... 22 小时前
    166. 3.166 Truncate This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    167. 3.167 Heading This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    168. 3.168 HStack This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    169. 3.169 VStack This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    170. 3.170 ToolbarDropdownMenu ToolbarDropdownMenu can be used to add actions to a toolbar, usually inside a Toolbar or ToolbarGroup when ... 22 小时前
    171. 3.171 Spacer This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    172. 3.172 Grid This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    173. 3.173 Divider This component is deprecated. Prefer a Separator subcomponent such as Menu.Separator when the surrounding... 22 小时前
    174. 3.174 ZStack This component is deprecated. Write your own CSS instead. Usage ZStack allows you to stack things along the... 22 小时前
    175. 3.175 Elevation This component is deprecated. Use the elevation tokens from @wordpress/base-styles instead. Elevation is a... 22 小时前
    176. 3.176 BaseField This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    177. 3.177 Scrollable This component is deprecated. Write your own CSS instead. Scrollable is a layout component that puts conten... 22 小时前
    178. 3.178 Surface This component is deprecated. Write your own CSS instead, preferably using the design tokens available in ... 22 小时前
    179. 3.179 CardBody CardBody renders an optional content area for a Card. Multiple CardBody components can be used within Ca... 22 小时前
    180. 3.180 CardDivider CardDivider renders an optional divider within a Card. It is typically used to divide multiple CardBody c... 22 小时前
    181. 3.181 CardFooter CardFooter renders an optional footer within a Card. Usage import { Card, CardFooter } from '@wordpress/co... 22 小时前
    182. 3.182 CardHeader CardHeader renders an optional header within a Card. Usage import { Card, CardHeader } from '@wordpress/co... 22 小时前
    183. 3.183 CardMedia CardMedia provides a container for full-bleed content within a Card, such as images, video, or even just a... 22 小时前
    184. 3.184 Flyout This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    185. 3.185 SearchControl SearchControl components let users display a search control. Check out the Storybook page for a visual expl... 22 小时前
    186. 3.186 ItemGroup This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    187. 3.187 Item This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    188. 3.188 ToolsPanelHeader This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    189. 3.189 ToolsPanelItem This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    190. 3.190 ToolsPanel This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    191. 3.191 ToggleGroupControl This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    192. 3.192 Navigator Navigator is a collection components that allow rendering nested views/panels/menus (via the Navigator.Scr... 22 小时前
    193. 3.193 ToggleGroupControlOption This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    194. 3.194 ConfirmDialog See the WordPress Storybook for more detailed, interactive documentation. ConfirmDialog is built on top of ... 22 小时前
    195. 3.195 GradientPicker See the WordPress Storybook for more detailed, interactive documentation. GradientPicker is a React compone... 22 小时前
    196. 3.196 BorderControl An input control for a border’s color, style, and width. Development guidelines The BorderControl brings t... 22 小时前
    197. 3.197 BorderBoxControl An input control for the color, style, and width of the border of a box. The border can be customized as a ... 22 小时前
    198. 3.198 ToggleGroupControlOptionBase This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    199. 3.199 ToggleGroupControlOptionIcon This feature is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    200. 3.200 CircularOptionPicker This component is not exported, and therefore can only be used internally to the `@wordpress/components` pa... 22 小时前
    201. 3.201 ProgressBar This component is deprecated since WordPress 7.3 and scheduled for removal in WordPress 7.5. Use `Progress`... 22 小时前
    202. 3.202 Composite Composite provides a single tab stop on the page and allows navigation through the focusable descendants wi... 22 小时前
    203. 3.203 DateCalendar 🔒 This component is locked as a private API. We do not yet recommend using this outside of the Gutenberg pr... 22 小时前
    204. 3.204 DateRangeCalendar 🔒 This component is locked as a private API. We do not yet recommend using this outside of the Gutenberg pr... 22 小时前
    205. 3.205 DatePicker DatePicker is a React component that renders a calendar for date selection. It can be used independently or... 22 小时前
    206. 3.206 TimePicker TimePicker is a React component that renders form inputs for time and date selection. It can be used indepe... 22 小时前
    207. 3.207 ContentEditableControl 🔒 This component is locked as a private API. We do not yet recommend using this outside of the Gutenberg pr... 22 小时前
    208. 3.208 @wordpress/a11y Accessibility utilities for WordPress. Installation Install the module npm install @wordpress/a11y --save T... 22 小时前
    209. 3.209 @wordpress/annotations Annotate content in the Gutenberg editor. Installation Install the module npm install @wordpress/annotation... 22 小时前
    210. 3.210 @wordpress/api-fetch Utility to make WordPress REST API requests. It’s a wrapper around window.fetch. Installation Install the ... 22 小时前
    211. 3.211 @wordpress/autop JavaScript port of WordPress’s automatic paragraph function autop and the removep reverse behavior. Insta... 22 小时前
    212. 3.212 @wordpress/babel-plugin-import-jsx-pragma Babel transform plugin for automatically injecting an import to be used as the pragma for the React JSX Tra... 22 小时前
    213. 3.213 @wordpress/babel-plugin-makepot Babel plugin used to scan JavaScript files for use of localization functions. It then compiles these into a... 22 小时前
    214. 3.214 @wordpress/babel-preset-default Default Babel preset for WordPress development. The preset includes configuration which enable language fea... 22 小时前
    215. 3.215 @wordpress/base-styles Base SCSS utilities and variables for WordPress. Note: This package requires Dart Sass to compile. When usi... 22 小时前
    216. 3.216 @wordpress/blob Blob utilities for WordPress. Installation Install the module npm install @wordpress/blob --save API create... 22 小时前
    217. 3.217 @wordpress/block-directory Package used to extend editor with block directory features to search and install blocks. This package is m... 22 小时前
    218. 3.218 @wordpress/block-editor This module allows you to create and use standalone block editors. Installation Install the module npm inst... 22 小时前
    219. 3.219 @wordpress/block-library Block library for the WordPress editor. Installation Install the module npm install @wordpress/block-librar... 22 小时前
    220. 3.220 @wordpress/block-serialization-default-parser This library contains the default block serialization parser implementations for WordPress documents. It pr... 22 小时前
    221. 3.221 @wordpress/block-serialization-spec-parser This library contains the grammar file ( grammar.pegjs) for WordPress posts which is a block serialization ... 22 小时前
    222. 3.222 @wordpress/blocks “Block” is the abstract term used to describe units of markup that, composed together, form the content or ... 22 小时前
    223. 3.223 @wordpress/browserslist-config WordPress Browserslist shareable config for Browserslist. Installation Install the module $ npm install bro... 22 小时前
    224. 3.224 @wordpress/components This package includes a library of generic WordPress components to be used for creating common UI elements ... 22 小时前
    225. 3.225 @wordpress/compose The compose package is a collection of handy Hooks and Higher Order Components (HOCs) you can use to wrap ... 22 小时前
    226. 3.226 @wordpress/core-data Core Data is a data module intended to simplify access to and manipulation of core WordPress entities. It r... 22 小时前
    227. 3.227 @wordpress/create-block-tutorial-template This is a template for @wordpress/create-block that creates an example “Copyright Date” block. This block ... 22 小时前
    228. 3.228 @wordpress/create-block Create Block is an officially supported tool for scaffolding a WordPress plugin that registers a block. It ... 22 小时前
    229. 3.229 @wordpress/custom-templated-path-webpack-plugin DEPRECATED for webpack v5: please use output.filename instead. Webpack plugin for creating custom path tem... 22 小时前
    230. 3.230 @wordpress/customize-widgets Widgets blocks in Customizer Module for WordPress. This package is meant to be used only with WordPress cor... 22 小时前
    231. 3.231 @wordpress/data-controls The data controls module is a module intended to simplify implementation of common controls used with the ... 22 小时前
    232. 3.232 @wordpress/data WordPress’ data module serves as a hub to manage application state for both plugins and WordPress itself, p... 22 小时前
    233. 3.233 @wordpress/date Date module for WordPress. Installation Install the module npm install @wordpress/date --save This package ... 22 小时前
    234. 3.234 @wordpress/dependency-extraction-webpack-plugin This webpack plugin serves two purposes: Externalize dependencies that are available as shared scripts or m... 22 小时前
    235. 3.235 @wordpress/deprecated Deprecation utility for WordPress. Logs a message to notify developers about a deprecated feature. Installa... 22 小时前
    236. 3.236 @wordpress/docgen docgen helps you to generate the public API of your code. Given an entry point file, it outputs the ES6 exp... 22 小时前
    237. 3.237 @wordpress/dom-ready Execute callback after the DOM is loaded. Installation Install the module npm install @wordpress/dom-ready ... 22 小时前
    238. 3.238 @wordpress/dom DOM utilities module for WordPress. Installation Install the module npm install @wordpress/dom --save API c... 22 小时前
    239. 3.239 @wordpress/e2e-tests This package contains test plugins and mu-plugins used by E2E tests in WordPress. Note: The E2E tests thems... 22 小时前
    240. 3.240 @wordpress/edit-post Edit Post Module for WordPress. This package is meant to be used only with WordPress core. Feel free to use... 22 小时前
    241. 3.241 @wordpress/edit-site Edit Site Page Module for WordPress. This package is meant to be used only with WordPress core. Feel free t... 22 小时前
    242. 3.242 @wordpress/edit-widgets Widgets Page Module for WordPress. This package is meant to be used only with WordPress core. Feel free to ... 22 小时前
    243. 3.243 @wordpress/editor This module utilizes components from the @wordpress/block-editor package. Having an awareness of the conce... 22 小时前
    244. 3.244 @wordpress/element Element is a package that builds on top of React and provide a set of utilities to work with React componen... 22 小时前
    245. 3.245 @wordpress/env wp-env lets you easily set up a local WordPress environment for building and testing plugins and themes. It... 22 小时前
    246. 3.246 @wordpress/escape-html Escape HTML utils. Installation Install the module npm install @wordpress/escape-html This package assumes ... 22 小时前
    247. 3.247 @wordpress/eslint-plugin ESLint plugin including configurations and custom rules for WordPress development. Installation Install the... 22 小时前
    248. 3.248 @wordpress/format-library Format library for the WordPress editor. Installation Install the module npm install @wordpress/format-libr... 22 小时前
    249. 3.249 @wordpress/hooks A lightweight & efficient EventManager for JavaScript. Installation Install the module npm install @wordpre... 22 小时前
    250. 3.250 @wordpress/html-entities HTML entity utilities for WordPress. Installation Install the module npm install @wordpress/html-entities -... 22 小时前
    251. 3.251 @wordpress/i18n Internationalization utilities for client-side localization. See How to Internationalize Your Plugin for se... 22 小时前
    252. 3.252 @wordpress/icons WordPress Icons Library. Installation Install the module: npm install @wordpress/icons --save This package ... 22 小时前
    253. 3.253 @wordpress/interface This package is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    254. 3.254 @wordpress/is-shallow-equal A function for performing a shallow comparison between two objects or arrays. Two values have shallow equal... 22 小时前
    255. 3.255 @wordpress/jest-console Custom Jest matchers for the Console object to test JavaScript code in WordPress. This package converts co... 22 小时前
    256. 3.256 @wordpress/jest-preset-default Default Jest preset for WordPress development. Installation Install the module npm install @wordpress/jest-... 22 小时前
    257. 3.257 @wordpress/keyboard-shortcuts Keyboard shortcuts is a generic package that allows registering and modifying shortcuts. Installation Insta... 22 小时前
    258. 3.258 @wordpress/keycodes Keycodes utilities for WordPress, used to check the key pressed in events like onKeyDown. Contains keycode... 22 小时前
    259. 3.259 @wordpress/lazy-import Import an NPM module, even if not installed locally or defined as a dependency of the project. Uses a local... 22 小时前
    260. 3.260 @wordpress/library-export-default-webpack-plugin DEPRECATED for webpack v5: please use output.library.export instead. Webpack plugin for exporting default... 22 小时前
    261. 3.261 @wordpress/list-reusable-blocks Package used to add import/export links to the listing page of the reusable blocks. This package is meant t... 22 小时前
    262. 3.262 @wordpress/media-utils The media utils package provides a set of artifacts to abstract media functionality that may be useful in s... 22 小时前
    263. 3.263 @wordpress/notices State management and UI components for notices. Installation Install the module npm install @wordpress/noti... 22 小时前
    264. 3.264 @wordpress/npm-package-json-lint-config WordPress npm-package-json-lint shareable configuration. Installation Install the module $ npm install @wor... 22 小时前
    265. 3.265 @wordpress/nux The NUX module is deprecated. It remains available as a no-op compatibility package so existing imports, sc... 22 小时前
    266. 3.266 @wordpress/plugins Plugins module for WordPress. Installation Install the module npm install @wordpress/plugins --save This pa... 22 小时前
    267. 3.267 @wordpress/postcss-plugins-preset PostCSS sharable plugins preset for WordPress development. Installation Install the module npm install @wor... 22 小时前
    268. 3.268 @wordpress/postcss-themes PostCSS plugin to generate theme colors. Installation Install the module npm install @wordpress/postcss-the... 22 小时前
    269. 3.269 @wordpress/prettier-config WordPress Prettier shareable config for Prettier. Installation Install the module $ npm install @wordpress/... 22 小时前
    270. 3.270 @wordpress/primitives Primitives to be used cross-platform. Installation Install the module npm install @wordpress/primitives --s... 22 小时前
    271. 3.271 @wordpress/priority-queue This module allows you to run a queue of callback while on the browser’s idle time making sure the higher-p... 22 小时前
    272. 3.272 @wordpress/project-management-automation This is a GitHub Action which contains various automation to assist with managing the Gutenberg GitHub repo... 22 小时前
    273. 3.273 @wordpress/react-i18n React bindings for @wordpress/i18n. Installation Install the module: npm install @wordpress/react-i18n Thi... 22 小时前
    274. 3.274 @wordpress/redux-routine Redux middleware for generator coroutines. Installation Install Node if you do not already have it availabl... 22 小时前
    275. 3.275 @wordpress/reusable-blocks The reusable blocks module is deprecated. It remains available as a no-op compatibility package so existing... 22 小时前
    276. 3.276 @wordpress/rich-text This module contains helper functions to convert HTML or a DOM tree into a rich text value and back, and to... 22 小时前
    277. 3.277 @wordpress/scripts This is a collection of reusable scripts tailored for WordPress development. For convenience, every tool pr... 22 小时前
    278. 3.278 @wordpress/server-side-render ServerSideRender is a component used for server-side rendering a preview of dynamic blocks to display in th... 22 小时前
    279. 3.279 @wordpress/shortcode Shortcode module for WordPress. Installation Install the module npm install @wordpress/shortcode --save Thi... 22 小时前
    280. 3.280 @wordpress/stylelint-config stylelint configuration rules to ensure your CSS is compliant with the WordPress CSS Coding Standards. Inst... 22 小时前
    281. 3.281 @wordpress/token-list Constructable, plain JavaScript DOMTokenList implementation, supporting non-browser runtimes. Installation ... 22 小时前
    282. 3.282 @wordpress/url A collection of utilities to manipulate URLs. Installation Install the module npm install @wordpress/url --... 22 小时前
    283. 3.283 @wordpress/viewport Viewport is a module for responding to changes in the browser viewport size. It registers its own data modu... 22 小时前
    284. 3.284 @wordpress/warning Utility for warning messages to the console based on a passed condition. Installation Install the module np... 22 小时前
    285. 3.285 @wordpress/wordcount WordPress word count utility. Installation Install the module npm install @wordpress/wordcount --save This ... 22 小时前
    286. 3.286 @wordpress/widgets This package contains common functionality used by the widgets block editor in the Widgets screen and the C... 22 小时前
    287. 3.287 @wordpress/readable-js-assets-webpack-plugin Generate a readable non-minified JS file for each .min.js asset. The end result is that for each JS entryp... 22 小时前
    288. 3.288 @wordpress/style-engine The Style Engine aims to provide a consistent API for rendering styling for blocks across both client-side ... 22 小时前
    289. 3.289 @wordpress/preferences A key/value store for application preferences. Installation Install the module npm install @wordpress/prefe... 22 小时前
    290. 3.290 @wordpress/preferences-persistence Persistence utilities for wordpress/preferences. Includes a persistence layer that saves data to WordPress... 22 小时前
    291. 3.291 @wordpress/experiments @wordpress/experiments enables sharing private __experimental APIs across @wordpress packages without pub... 22 小时前
    292. 3.292 @wordpress/private-apis @wordpress/private-apis enables sharing private __experimental APIs across @wordpress packages without pu... 22 小时前
    293. 3.293 @wordpress/commands Commands is a generic package that allows registering and modifying commands to be displayed using the comm... 22 小时前
    294. 3.294 @wordpress/router Router is a generic package that allows to use browser routing in WordPress packages. Installation Install ... 22 小时前
    295. 3.295 @wordpress/core-commands This package includes a list of reusable WordPress Admin commands. These commands can be used in multiple W... 22 小时前
    296. 3.296 @wordpress/e2e-test-utils-playwright End-To-End (E2E) Playwright test utils for WordPress. It works properly with the minimum version of Gutenbe... 22 小时前
    297. 3.297 @wordpress/interactivity The package @wordpress/interactivity contains the logic that enables the Interactivity API which was intro... 22 小时前
    298. 3.298 @wordpress/create-block-interactive-template This is a template for @wordpress/create-block to create interactive blocks. Usage This block template can... 22 小时前
    299. 3.299 @wordpress/sync Sync entity data between peers for real-time collaboration using CRDT documents. This package provides the ... 22 小时前
    300. 3.300 @wordpress/patterns Note This package is currently only used internally by the Gutenberg project to manage the creation and edi... 22 小时前
    301. 3.301 @wordpress/undo-manager A simple undo manager. Installation Install the module npm install @wordpress/undo-manager --save API creat... 22 小时前
    302. 3.302 @wordpress/dataviews This package offers three React components and a few utilities to work with a list of data: DataViews: to r... 22 小时前
    303. 3.303 @wordpress/interactivity-router The package @wordpress/interactivity-router enables loading content from other pages without a full page r... 22 小时前
    304. 3.304 @wordpress/fields This package provides core elements for the DataView library, designed to simplify the creation and managem... 22 小时前
    305. 3.305 @wordpress/upload-media This package is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    306. 3.306 @wordpress/views A lightweight package for managing DataViews view state with persistence using WordPress preferences. The ... 22 小时前
    307. 3.307 @wordpress/admin-ui UI components for building consistent admin page layouts. While @wordpress/ui provides low-level, generic ... 22 小时前
    308. 3.308 @wordpress/latex-to-mathml Convert LaTeX math syntax to MathML. Installation Install the module: npm install @wordpress/latex-to-mathm... 22 小时前
    309. 3.309 @wordpress/global-styles-engine A generic library for reading and writing global styles data structures (theme.json format). Overview This ... 22 小时前
    310. 3.310 @wordpress/theme A theming package that’s part of the WordPress Design System. It has two parts: Design Tokens: A comprehens... 22 小时前
    311. 3.311 @wordpress/global-styles-ui UI components for managing WordPress Global Styles. Installation Install the module: npm install @wordpress... 22 小时前
    312. 3.312 @wordpress/build Build tool for WordPress plugins. Description @wordpress/build is an opinionated build system designed for ... 22 小时前
    313. 3.313 @wordpress/boot Minimal boot package for WordPress admin pages. It renders a single-page React application into an admin sc... 22 小时前
    314. 3.314 @wordpress/asset-loader Utility to dynamically load WordPress scripts and styles with dependency resolution. Overview This package ... 22 小时前
    315. 3.315 @wordpress/lazy-editor Lazy-loading editor component with automatic asset and settings management. Overview This package provides ... 22 小时前
    316. 3.316 @wordpress/ui This package is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    317. 3.317 @wordpress/route Routing utilities for WordPress admin interfaces, providing a shared instance of TanStack Router. Installat... 22 小时前
    318. 3.318 @wordpress/abilities Client library for the WordPress Abilities API, providing a standardized way to discover and execute WordPr... 22 小时前
    319. 3.319 @wordpress/image-cropper An implementation of react-easy-crop. Current features Image Cropping: Interactive aspect ratio-based crop ... 22 小时前
    320. 3.320 @wordpress/media-fields This package provides reusable field definitions for displaying and editing media attachment properties in ... 22 小时前
    321. 3.321 @wordpress/core-abilities WordPress core abilities integration for the Abilities API. This package provides the integration layer bet... 22 小时前
    322. 3.322 @wordpress/media-editor Media editor components for WordPress. Installation npm install @wordpress/media-editor --save This package... 22 小时前
    323. 3.323 @wordpress/vips Helper package to interact with wasm-vips. Installation Install the module npm install @wordpress/vips --s... 22 小时前
    324. 3.324 @wordpress/worker-threads Utilities for type-safe Web Worker communication with RPC (Remote Procedure Call). This package provides a ... 22 小时前
    325. 3.325 @wordpress/design-system-mcp The Design System MCP server is still experimental. “Experimental” means this is an early implementation su... 22 小时前
    326. 3.326 @wordpress/style-runtime Runtime helpers for registering styles and injecting them into one or more documents. CSS module imports ar... 22 小时前
    327. 3.327 @wordpress/grid This package is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    328. 3.328 @wordpress/widget-primitives This package is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    329. 3.329 @wordpress/widget-dashboard This package is still experimental. “Experimental” means this is an early implementation subject to drastic... 22 小时前
    330. 3.330 @wordpress/video-conversion Client-side video conversion package used by @wordpress/upload-media. It currently converts animated GIFs ... 22 小时前
    331. 3.331 @wordpress/kebab-case Convert strings to kebab-case, matching WordPress Core’s _wp_to_kebab_case(). This package exists because ... 22 小时前
    332. 3.332 @wordpress/react-inert-value Return a React inert prop value that works under both React 18 and React 19. React 19 treats inert as a b... 22 小时前
    333. 3.333 @wordpress/core-actions The actions WordPress core registers for its entities, such as “Rename”, “Duplicate” or “Move to trash”. Th... 22 小时前
    334. 3.334 @wordpress/theme-build-tools Build plugins and Stylelint plugins for the WordPress Design System design tokens provided by @wordpress/t... 22 小时前
    335. 3.335 External Project Templates Are you looking for a way to share your project configuration? Creating an external project template hosted... 22 小时前
    336. 3.336 WordPress Core Data Namespace: core. Dynamically generated selectors There are a number of user-friendly selectors that are wr... 22 小时前
    337. 3.337 Annotations Namespace: core/annotations. This package is still experimental. “Experimental” means this is an early imp... 22 小时前
    338. 3.338 Block Types Data Namespace: core/blocks. Selectors getActiveBlockVariation Returns the active block variation for a given b... 22 小时前
    339. 3.339 The Block Editor’s Data Namespace: core/block-editor. Selectors areInnerBlocksControlled Checks if a given block has controlled in... 22 小时前
    340. 3.340 The Post Editor’s Data Namespace: core/editor. Selectors canInsertBlockType Related canInsertBlockType in core/block-editor store... 22 小时前
    341. 3.341 The Editor’s UI Data Namespace: core/edit-post. Selectors areMetaBoxesInitialized Returns true if meta boxes are initialized. P... 22 小时前
    342. 3.342 Notices Data Namespace: core/notices. Selectors getNotices Returns all notices as an array, optionally for a given cont... 22 小时前
    343. 3.343 The NUX (New User Experience) Data Namespace: core/nux. Selectors areTipsEnabled Returns whether or not tips are globally enabled. Parameters... 22 小时前
    344. 3.344 The Viewport Data Namespace: core/viewport. Selectors isViewportMatch Returns true if the viewport matches the given query, ... 22 小时前
    345. 3.345 Block directory Namespace: core/block-directory. Selectors getDownloadableBlocks Returns the available uninstalled blocks.... 22 小时前
    346. 3.346 Customize Widgets Namespace: core/customize-widgets. Selectors isInserterOpened Returns true if the inserter is opened. Usag... 22 小时前
    347. 3.347 Edit Site Namespace: core/edit-site. Selectors getCanUserCreateMedia Returns whether the current user can create med... 22 小时前
    348. 3.348 Edit Widgets Namespace: core/edit-widgets. Selectors canInsertBlockInWidgetArea Returns true if a block can be inserted... 22 小时前
    349. 3.349 The Keyboard Shortcuts Data Namespace: core/keyboard-shortcuts. Selectors getAllShortcutKeyCombinations Returns the shortcuts that inc... 22 小时前
    350. 3.350 Preferences Namespace: core/preferences. Selectors get Returns a boolean indicating whether a preference is active for... 22 小时前
    351. 3.351 Reusable blocks Namespace: core/reusable-blocks. This package is still experimental. “Experimental” means this is an early... 22 小时前
    352. 3.352 Rich Text Namespace: core/rich-text. Selectors getFormatType Returns a format type by name. Usage import { __, sprin... 22 小时前
    353. 3.353 The Commands Data Namespace: core/commands. Selectors getCommandLoaders Returns the registered command loaders. Parameters s... 22 小时前
    354. 3.354 User Interface The Block Editor The block editor’s general layout uses a bar at the top, with content below. The Toolbar c... 22 小时前
    355. 3.355 Architecture Let’s look at the big picture and the architectural and UX principles of the block editor and the Gutenberg... 22 小时前
    356. 3.356 History A set of links and resources covering the history of the Gutenberg project, how it got started, sources of ... 22 小时前
    357. 3.357 Key Concepts Blocks Blocks are an abstract unit for structuring and interacting with content. When composed together the... 22 小时前
    358. 3.358 Data Flow and Data Format The format A block editor post is the proper block-aware representation of a post: a collection of semantic... 22 小时前
    359. 3.359 Modularity The WordPress block editor is based around the idea that you can combine independent blocks together to wri... 22 小时前
    360. 3.360 Performance Performance is a key feature for editor applications and the Block editor is not an exception. Metrics To e... 22 小时前
    361. 3.361 Automated Testing Why is Playwright the tool of choice for end-to-end tests? There exists a rich ecosystem of tooling availab... 22 小时前
    362. 3.362 Site Editing Templates Template and template part flows This document will explain the internals of how templates and templates pa... 22 小时前
    363. 3.363 Styles in the Editor This document introduces the main concepts related to styles that affect the user content in the block edit... 22 小时前
    364. 3.364 Entities and Undo/Redo The WordPress editors, whether it’s the Post or Site Editor, manipulate what we call entity records. These ... 22 小时前
    365. 3.365 The Dashboard Widget System The widget system is experimental and ships behind the `gutenberg-dashboard-widgets` experiment. APIs and f... 22 小时前
    366. 3.366 Client-Side Media Processing Introduction The goal of client-side media is to provide the highest quality media processing to all WordPr... 22 小时前
    367. 3.367 Blocks are the Interface At the core of Gutenberg lies the concept of the block. From a technical point of view, blocks both raise t... 22 小时前
    368. 3.368 Working with WordPress Design System packages The Design System introduction lists its foundational and compositional packages. This guide focuses on @wo... 22 小时前
    369. 3.369 Copy Guidelines Longer Text Guidelines for writing multi-line/step instructions or narrative introductions/orientation to p... 22 小时前
    370. 3.370 Triage To keep the repository healthy, it needs to be triaged regularly. Triage is the practice of reviewing exist... 22 小时前
    371. 3.371 Accessibility Testing This is a guide on how to test accessibility on Gutenberg. This is a living document that can be improved o... 22 小时前
    372. 3.372 Folder Structure The following snippet explains how the Gutenberg repository is structured omitting irrelevant or obvious it... 22 小时前
    373. 3.373 Gutenberg versions in WordPress With each major release of WordPress a new version of Gutenberg is included. This has caused confusion over... 22 小时前
    374. 3.374 Design Contributions A guide on how to get started contributing design to the Gutenberg project. For guidance on consuming or ma... 22 小时前
    375. 3.375 Documentation Contributions A guide on how to get started contributing documentation to the Gutenberg project. Discussions The Make Wor... 22 小时前
    376. 3.376 Code Contributions A guide on how to get started contributing code to the Gutenberg project. Discussions The Make WordPress Co... 22 小时前
    377. 3.377 Repository Management This is a living document explaining how we collaboratively manage the Gutenberg repository. If you’d like ... 22 小时前
    378. 3.378 Localizing Gutenberg The Gutenberg plugin is translated via the general plugin translation system (GlotPress) at https://transla... 22 小时前
    379. 3.379 Getting Started With Code Contribution The following guide is for setting up your local environment to contribute to the Gutenberg project. There ... 22 小时前
    380. 3.380 Git Workflow This documentation is intended to help you get started using git with Gutenberg. Git is a powerful source c... 22 小时前
    381. 3.381 Coding Guidelines This living document serves to prescribe coding guidelines specific to the Gutenberg project. Base coding g... 22 小时前
    382. 3.382 Testing Overview Gutenberg contains both PHP and JavaScript code, and encourages testing and code style linting for both. Wh... 22 小时前
    383. 3.383 Scripts The editor provides several vendor and internal scripts to plugin developers. Script names, handles, and de... 22 小时前
    384. 3.384 Managing Packages This repository uses npm workspaces to manage WordPress packages and lerna to publish them to npm. This enf... 22 小时前
    385. 3.385 Gutenberg Release Process The Gutenberg repository on GitHub is used to perform several types of releases. This page provides an over... 22 小时前
    386. 3.386 React Native mobile editor The Gutenberg repository includes the source for the React Native based editor for mobile. Project status T... 22 小时前
    387. 3.387 Backward Compatibility Historically, WordPress has been known for preserving backward compatibility across versions. Gutenberg fol... 22 小时前
    388. 3.388 Deprecations For features included in the Gutenberg plugin, the deprecation policy is intended to support backward compa... 22 小时前
    389. 3.389 How To Get Your Pull Request Reviewed? Sometimes we publish a Pull Request and no one reviews our work. What to do? Attracting a review largely is... 22 小时前
    390. 3.390 Workspace Development The Gutenberg repository is an npm workspaces monorepo. Beyond the published @wordpress/* packages under ... 22 小时前
    391. 3.391 Agents and Skills The Gutenberg repository ships instructions for AI coding agents: AGENTS.md files and an .agents/skills/ ... 22 小时前
    392. 3.392 Testing published packages across WordPress versions A plugin can bundle one @wordpress/* package while loading its dependencies from WordPress. The bundled pa... 22 小时前
    393. 3.393 Required changes from trunk The Required changes from trunk status check ensures open pull requests contain the latest required repo-w... 22 小时前
    394. 3.394 End-to-End Testing This living document serves to prescribe instructions and best practices for writing end-to-end (E2E) tests... 22 小时前
    395. 3.395 Cherry-picking automation npm run other:cherry-pick automates cherry-picking Pull Requests with a specific label into the current bra... 22 小时前
    396. 3.396 Gutenberg plugin releases Quick Reference Timeline Release RC1 on milestone date, generally Wednesday Release stable version, the fol... 22 小时前
    397. 3.397 Packages releases to NPM and WordPress Core updates The Gutenberg repository follows the WordPress SVN repository’s branching strategy for every major WordPres... 22 小时前
    398. 3.398 Migrating Blocks for iframe Editor Compatibility Overview The iframe integration is part of an ongoing effort to modernize the editing experience. The Guten... 22 小时前
    399. 3.399 Theme Support The new Blocks include baseline support in all themes, enhancements to opt-in to and the ability to extend ... 22 小时前
    400. 3.400 Global Settings & Styles (theme.json) WordPress 5.8 comes with a new mechanism to configure the editor that enables a finer-grained control and i... 22 小时前
    401. 3.401 Widgets Block Editor overview Widgets Block Editor The new Widgets Editor is a WordPress feature which upgrades widget areas to allow usi... 22 小时前
    402. 3.402 Restoring the classic Widgets Editor There are several ways to disable the new Widgets Block Editor. Using remove_theme_support Themes may disa... 22 小时前
    403. 3.403 About the Legacy Widget block The Legacy Widget block allows users to add, edit and preview third party widgets that are registered by pl... 22 小时前
    404. 3.404 Block Development Environment This guide will help you set up the right development environment to create blocks and other plugins that e... 22 小时前
    405. 3.405 Glossary Attribute sources An object describing the attributes shape of a block. The keys can be named as most appro... 22 小时前
    406. 3.406 Frequently Asked Questions What follows is a set of questions that have come up from the last few years of Gutenberg development. If y... 22 小时前
    407. 3.407 Quick Start Guide This guide is designed to demonstrate the basic principles of block development in WordPress using a hands-... 22 小时前
    408. 3.408 Fundamentals of Block Development This section provides an introduction to the most relevant concepts in block development. Use the following... 22 小时前
    409. 3.409 Tutorial: Build your first block In this tutorial, you will build a “Copyright Date Block”—a basic yet practical block that displays the cop... 22 小时前
    410. 3.410 Getting Started for the React Native based Mobile Gutenberg Welcome! This is the Getting Started guide for the native mobile port of the block editor, targeting Androi... 22 小时前
    411. 3.411 React Native Integration Test Guide What’s an integration test? Integration testing is defined as a type of testing where different parts are t... 22 小时前
    412. 3.412 Setup guide for React Native development (macOS) Are you interested in contributing to the native mobile editor? This guide is a detailed walk through desig... 22 小时前
    413. 3.413 React Native Internationalization Guide The native version of the editor references two types of string: 1. Strings used in web and native platform... 22 小时前
    414. 3.414 Design Blocks – Accordion — core/accordion: Displays a foldable layout that groups content in collapsible sections. – Ac... 22 小时前
    415. 3.415 Embed Blocks – Embed — core/embed: Add a block that displays content pulled from other sites, like Twitter or YouTube. 22 小时前
    416. 3.416 Media Blocks – Audio — core/audio: Embed a simple audio player. – Cover — core/cover: Add an image or video with a tex... 22 小时前
    417. 3.417 Reusable Blocks – Pattern — core/block: Reuse this design across your site. 22 小时前
    418. 3.418 Text Blocks – Code — core/code: Display code snippets that respect your spacing and tabs. – Details — core/details: H... 22 小时前
    419. 3.419 Theme Blocks – Avatar — core/avatar: Add a user’s avatar. – Breadcrumbs — core/breadcrumbs: Display a breadcrumb trail... 22 小时前
    420. 3.420 Widgets Blocks – Archives — core/archives: Display a date archive of your posts. – Calendar — core/calendar: A calendar ... 22 小时前
    421. 3.421 Theme.json Version 3 Reference (latest) This is the living specification for version 3 of theme.json. This version works with WordPress 6.6 or lat... 22 小时前
    422. 3.422 Theme.json Version 1 Reference This is the specification for version 1 of theme.json. This version works with WordPress 5.8 or later. The... 22 小时前
    423. 3.423 Migrating Theme.json to Newer Versions This guide documents the changes between different theme.json versions and how to upgrade. Using older ver... 22 小时前
    424. 3.424 Available Styles Options New styles options are integrated into theme.json on a regular basis. Knowing the style options available t... 22 小时前
    425. 3.425 Theme.json Version 2 Reference This is the specification for version 2 of theme.json. This version works with WordPress 5.9 or later. The... 22 小时前
    426. 3.426 Setup We will build the application as a WordPress plugin, which means you need to have WordPress itself installe... 22 小时前
    427. 3.427 Building a list of pages In this part, we will build a filterable list of all WordPress pages. This is what the app will look like a... 22 小时前
    428. 3.428 Building an edit form This part is about adding an Edit feature to our app. Here’s a glimpse of what we’re going to build: Step 1... 22 小时前
    429. 3.429 Building a Create page form In the previous part we created an Edit page feature, and in this part we will add a Create page feature. H... 22 小时前
    430. 3.430 Adding a delete button In the previous part we added an ability to create new pages, and in this part we will add a Delete feature... 22 小时前
    431. 3.431 @wordpress/style-engine Using the Style Engine to generate block supports styles Block supports is the API that allows a block to declare support for certain features. Where a block declar... 22 小时前
    432. 3.432 theme.json A theme’s theme.json file is one of the best ways to curate the Editor experience and will likely be the fi... 22 小时前
    433. 3.433 Block Locking API The Block Locking API allows you to restrict actions on specific blocks within the Editor. This API can be ... 22 小时前
    434. 3.434 Patterns Block patterns are one of the best ways to provide users with unique and curated editing experiences. Prior... 22 小时前
    435. 3.435 Filters and hooks The Editor provides numerous filters and hooks that allow you to modify the editing experience. Here are a ... 22 小时前
    436. 3.436 Disable Editor functionality This page is dedicated to the many ways you can disable specific functionality in the Post Editor and Site ... 22 小时前
    437. 3.437 Migration guide This document outlines a typical flow of migrating a Jest + Puppeteer test to Playwright. Note that the mig... 22 小时前
    438. 3.438 Overusing snapshots Take a look at the below code. Could you understand what the test is trying to do at first glance? await ed... 22 小时前
    439. 3.439 File structure of a block When developing custom blocks for WordPress, it’s best practice to register them within plugins rather than... 22 小时前
    440. 3.440 Registration of a block Blocks in WordPress are typically bundled in a plugin and registered on both the server and client-side usi... 22 小时前
    441. 3.441 Working with JavaScript for the Block Editor Developing blocks for the Block Editor often involves using modern JavaScript (ESNext and JSX), and most ex... 22 小时前
    442. 3.442 block.json The block.json file simplifies the process of defining and registering a block by using the same block’s d... 22 小时前
    443. 3.443 The block wrapper Every block in the Block Editor is contained within an HTML wrapper, which must have specific attributes to... 22 小时前
    444. 3.444 The block in the Editor The Block Editor is a React Single Page Application (SPA). Every block in the Editor is displayed through a... 22 小时前
    445. 3.445 Markup representation of a block Blocks are stored in the database or within HTML templates using a unique HTML-based syntax, distinguished ... 22 小时前
    446. 3.446 Static or Dynamic rendering of a block A block’s front-end markup can either be dynamically generated server-side upon request (dynamic blocks) or... 22 小时前
    447. 3.447 Quick start guide This guide will help you build a basic block that demonstrates the Interactivity API in WordPress. Prerequi... 22 小时前
    448. 3.448 About the Interactivity API The Interactivity API is a standard system of directives, based on declarative code, for adding frontend in... 22 小时前
    449. 3.449 Frequently Asked Questions How does the Interactivity API work under the hood? Its three main components are: Preact combined with Pre... 22 小时前
    450. 3.450 Core Concepts This section provides some guides on important concepts and mental models related to Interactivity API deve... 22 小时前
    451. 3.451 Directives and Store Interactivity API is only available for WordPress 6.5 and above. To add interactions to blocks using the In... 22 小时前
    452. 3.452 The Reactive and Declarative mindset The Interactivity API is a reactive and declarative framework, similar to other modern frameworks like Reac... 22 小时前
    453. 3.453 Server-side rendering: Processing directives on the server WordPress has always been built on the foundation of server-side rendering. Traditionally, when a user requ... 22 小时前
    454. 3.454 Using TypeScript The Interactivity API provides robust support for TypeScript, enabling developers to build type-safe stores... 22 小时前
    455. 3.455 Understanding global state, local context, derived state and config The Interactivity API offers a powerful framework for creating interactive blocks. To make the most of its ... 22 小时前
    456. 3.456 Client-Side Navigation Client-side navigation is a technique that allows navigation between pages without requiring a full page re... 22 小时前
    457. 3.457 Client-Side Navigation Compatibility Client-side navigation enables page transitions without a full page reload by updating only the parts of th... 22 小时前
    458. 3.458 Accordion Heading Displays a heading that toggles the accordion panel. Name: core/accordion-heading Category: design API Ver... 22 小时前
    459. 3.459 Accordion Item Wraps the heading and panel in one unit. Name: core/accordion-item Category: design API Version: 3 Block T... 22 小时前
    460. 3.460 Accordion Panel Contains the hidden or revealed content beneath the heading. Name: core/accordion-panel Category: design A... 22 小时前
    461. 3.461 Accordion Displays a foldable layout that groups content in collapsible sections. Name: core/accordion Category: des... 22 小时前
    462. 3.462 Button Prompt visitors to take action with a button-style link. Name: core/button Category: design API Version: 3... 22 小时前
    463. 3.463 Buttons Prompt visitors to take action with a group of button-style links. Name: core/buttons Category: design API... 22 小时前
    464. 3.464 Column A single column within a columns block. Name: core/column Category: design API Version: 3 Block Type: Stat... 22 小时前
    465. 3.465 Columns Display content in multiple columns, with blocks added to each column. Name: core/columns Category: design... 22 小时前
    466. 3.466 Comment Template Contains the block elements used to display a comment, like the title, date, author, avatar and more. Name:... 22 小时前
    467. 3.467 Group Gather blocks in a layout container. Name: core/group Category: design API Version: 3 Block Type: Static (... 22 小时前
    468. 3.468 Home Link Create a link that always points to the homepage of the site. Usually not necessary if there is already a s... 22 小时前
    469. 3.469 More Content before this block is shown in the excerpt on blog and archive pages. Where a theme shows the full c... 22 小时前
    470. 3.470 Navigation Link Add a page, link, or another item to your navigation. Name: core/navigation-link Category: design API Vers... 22 小时前
    471. 3.471 Navigation Overlay Close A customizable button to close overlays. Name: core/navigation-overlay-close Category: design API Version:... 22 小时前
    472. 3.472 Submenu Add a submenu to your navigation. Name: core/navigation-submenu Category: design API Version: 3 Block Type... 22 小时前
    473. 3.473 Page Break Separate your content into a multi-page experience. Name: core/nextpage Category: design API Version: 3 Bl... 22 小时前
    474. 3.474 Separator Create a break between ideas or sections with a horizontal separator. Name: core/separator Category: desig... 22 小时前
    475. 3.475 Spacer Add white space between blocks and customize its height. Name: core/spacer Category: design API Version: 3... 22 小时前
    476. 3.476 Tab List Display the tab buttons for a tabbed interface. Name: core/tab-list Category: design API Version: 3 Block ... 22 小时前
    477. 3.477 Tab Panel Content for a tab in a tabbed interface. Name: core/tab-panel Category: design API Version: 3 Block Type: ... 22 小时前
    478. 3.478 Tab Panels Container for tab panel content in a tabbed interface. Name: core/tab-panels Category: design API Version:... 22 小时前
    479. 3.479 Tab This block is experimental and may change or be removed without notice. A single tab button in the tab list... 22 小时前
    480. 3.480 Table of Contents This block is experimental and may change or be removed without notice. Summarize your post with a list of ... 22 小时前
    481. 3.481 Tabs Display content in a tabbed interface to help users navigate detailed content with ease. Name: core/tabs C... 22 小时前
    482. 3.482 Text Columns (deprecated) This block is deprecated and should not be used in new content. Please use the Columns block instead. Name:... 22 小时前
    483. 3.483 Embed Add a block that displays content pulled from other sites, like Twitter or YouTube. Name: core/embed Categ... 22 小时前
    484. 3.484 Audio Embed a simple audio player. Name: core/audio Category: media API Version: 3 Block Type: Static (saved in ... 22 小时前
    485. 3.485 Cover Restricting video embed providers The Cover block can use a background video embedded from a URL. The allo... 22 小时前
    486. 3.486 File Add a link to a downloadable file. Name: core/file Category: media API Version: 3 Block Type: Hybrid (stat... 22 小时前
    487. 3.487 Gallery Display multiple images in a rich gallery. Name: core/gallery Category: media API Version: 3 Block Type: H... 22 小时前
    488. 3.488 Icon Insert an SVG icon. Name: core/icon Category: media API Version: 3 Block Type: Dynamic (server-rendered) K... 22 小时前
    489. 3.489 Image Insert an image to make a visual statement. Name: core/image Category: media API Version: 3 Block Type: Hy... 22 小时前
    490. 3.490 Media & Text Set media and words side-by-side for a richer layout. Name: core/media-text Category: media API Version: 3... 22 小时前
    491. 3.491 Playlist track Playlist track. Name: core/playlist-track Category: media API Version: 3 Block Type: Dynamic (server-rende... 22 小时前
    492. 3.492 Playlist Embed a simple playlist. Name: core/playlist Category: media API Version: 3 Block Type: Hybrid (static sav... 22 小时前
    493. 3.493 Video Embed a video from your media library or upload a new one. Name: core/video Category: media API Version: 3... 22 小时前
    494. 3.494 Pattern Reuse this design across your site. Name: core/block Category: reusable API Version: 3 Block Type: Dynamic... 22 小时前
    495. 3.495 Code Display code snippets that respect your spacing and tabs. Name: core/code Category: text API Version: 3 Bl... 22 小时前
    496. 3.496 Details Hide and show additional content. Name: core/details Category: text API Version: 3 Block Type: Hybrid (sta... 22 小时前
    497. 3.497 Footnotes Display footnotes added to the page. Name: core/footnotes Category: text API Version: 3 Block Type: Dynami... 22 小时前
    498. 3.498 Classic Use the classic WordPress editor. Name: core/freeform Category: text API Version: 3 Block Type: Static (sa... 22 小时前
    499. 3.499 Heading Introduce new sections and organize content to help visitors (and search engines) understand the structure ... 22 小时前
    500. 3.500 List Item An individual item within a list. Name: core/list-item Category: text API Version: 3 Block Type: Static (s... 22 小时前
    501. 3.501 List An organized collection of items displayed in a specific order. Name: core/list Category: text API Version... 22 小时前
    502. 3.502 Math Display mathematical notation using LaTeX. Name: core/math Category: text API Version: 3 Block Type: Stati... 22 小时前
    503. 3.503 Unsupported Your site doesn’t include support for this block. Name: core/missing Category: text API Version: 3 Block T... 22 小时前
    504. 3.504 Paragraph Start with the basic building block of all narrative. Name: core/paragraph Category: text API Version: 3 B... 22 小时前
    505. 3.505 Preformatted Add text that respects your spacing and tabs, and also allows styling. Name: core/preformatted Category: t... 22 小时前
    506. 3.506 Pullquote Give special visual emphasis to a quote from your text. Name: core/pullquote Category: text API Version: 3... 22 小时前
    507. 3.507 Quote Give quoted text visual emphasis. “In quoting others, we cite ourselves.” — Julio Cortázar Name: core/quot... 22 小时前
    508. 3.508 Table Create structured content in rows and columns to display information. Name: core/table Category: text API ... 22 小时前
    509. 3.509 Poetry Insert poetry. Use special spacing formats. Or quote song lyrics. Name: core/verse Category: text API Vers... 22 小时前
    510. 3.510 Avatar Add a user’s avatar. Name: core/avatar Category: theme API Version: 3 Block Type: Dynamic (server-rendered... 22 小时前
    511. 3.511 Breadcrumbs Display a breadcrumb trail showing the path to the current page. Name: core/breadcrumbs Category: theme AP... 22 小时前
    512. 3.512 Comment Author Avatar (deprecated) This block is deprecated and should not be used in new content. Please use the Avatar block instead. Name: ... 22 小时前
    513. 3.513 Comment Author Name Displays the name of the author of the comment. Name: core/comment-author-name Category: theme API Version... 22 小时前
    514. 3.514 Comment Content Displays the contents of a comment. Name: core/comment-content Category: theme API Version: 3 Block Type: ... 22 小时前
    515. 3.515 Comment Date Displays the date on which the comment was posted. Name: core/comment-date Category: theme API Version: 3 ... 22 小时前
    516. 3.516 Comment Edit Link Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the... 22 小时前
    517. 3.517 Comment Reply Link Displays a link to reply to a comment. Name: core/comment-reply-link Category: theme API Version: 3 Block ... 22 小时前
    518. 3.518 Comments Next Page Displays the next comment’s page link. Name: core/comments-pagination-next Category: theme API Version: 3 ... 22 小时前
    519. 3.519 Comments Page Numbers Displays a list of page numbers for comments pagination. Name: core/comments-pagination-numbers Category: ... 22 小时前
    520. 3.520 Comments Previous Page Displays the previous comment’s page link. Name: core/comments-pagination-previous Category: theme API Ver... 22 小时前
    521. 3.521 Comments Pagination Displays a paginated navigation to next/previous set of comments, when applicable. Name: core/comments-pag... 22 小时前
    522. 3.522 Comments Title Displays a title with the number of comments. Name: core/comments-title Category: theme API Version: 3 Blo... 22 小时前
    523. 3.523 Comments An advanced block that allows displaying post comments using different visual configurations. Name: core/c... 22 小时前
    524. 3.524 Login/out Show login & logout links. Name: core/loginout Category: theme API Version: 3 Block Type: Dynamic (server-... 22 小时前
    525. 3.525 Navigation The Navigation block is a container block for the collection of blocks that allow visitors to get around yo... 22 小时前
    526. 3.526 Pattern Placeholder Show a block pattern. Name: core/pattern Category: theme API Version: 3 Block Type: Dynamic (server-render... 22 小时前
    527. 3.527 Author Biography The author biography. Name: core/post-author-biography Category: theme API Version: 3 Block Type: Dynamic ... 22 小时前
    528. 3.528 Author Name The author name. Name: core/post-author-name Category: theme API Version: 3 Block Type: Dynamic (server-re... 22 小时前
    529. 3.529 Author (deprecated) This block is deprecated and should not be used in new content. Please use the Avatar block, the Author Nam... 22 小时前
    530. 3.530 Comment (deprecated) This block is deprecated and should not be used in new content. Please use the Comments block instead. Name... 22 小时前
    531. 3.531 Comments Count Display a post’s comments count. Name: core/post-comments-count Category: theme API Version: 3 Block Type:... 22 小时前
    532. 3.532 Comments Form Display a post’s comments form. Name: core/post-comments-form Category: theme API Version: 3 Block Type: D... 22 小时前
    533. 3.533 Comments Link Displays the link to the current post comments. Name: core/post-comments-link Category: theme API Version:... 22 小时前
    534. 3.534 Content Displays the contents of a post or page. Name: core/post-content Category: theme API Version: 3 Block Type... 22 小时前
    535. 3.535 Date Display a custom date. Name: core/post-date Category: theme API Version: 3 Block Type: Dynamic (server-ren... 22 小时前
    536. 3.536 Excerpt Display the excerpt. Name: core/post-excerpt Category: theme API Version: 3 Block Type: Dynamic (server-re... 22 小时前
    537. 3.537 Featured Image Display a post’s featured image. Name: core/post-featured-image Category: theme API Version: 3 Block Type:... 22 小时前
    538. 3.538 Post Navigation Link Displays the next or previous post link that is adjacent to the current post. Name: core/post-navigation-l... 22 小时前
    539. 3.539 Post Template Contains the block elements used to render a post, like the title, date, featured image, content or excerpt... 22 小时前
    540. 3.540 Post Terms Post terms. Name: core/post-terms Category: theme API Version: 3 Block Type: Dynamic (server-rendered) Att... 22 小时前
    541. 3.541 Time to Read Show minutes required to finish reading the post. Can also show a word count. Name: core/post-time-to-read... 22 小时前
    542. 3.542 Title Displays the title of a post, page, or any other content-type. Name: core/post-title Category: theme API V... 22 小时前
    543. 3.543 No Results Contains the block elements used to render content when no query results are found. Name: core/query-no-re... 22 小时前
    544. 3.544 Next Page Displays the next posts page link. Name: core/query-pagination-next Category: theme API Version: 3 Block T... 22 小时前
    545. 3.545 Page Numbers Displays a list of page numbers for pagination. Name: core/query-pagination-numbers Category: theme API Ve... 22 小时前
    546. 3.546 Previous Page Displays the previous posts page link. Name: core/query-pagination-previous Category: theme API Version: 3... 22 小时前
    547. 3.547 Pagination Displays a paginated navigation to next/previous set of posts, when applicable. Name: core/query-paginatio... 22 小时前
    548. 3.548 Query Title Display the query title. Name: core/query-title Category: theme API Version: 3 Block Type: Dynamic (server... 22 小时前
    549. 3.549 Query Total Display the total number of results in a query. Name: core/query-total Category: theme API Version: 3 Bloc... 22 小时前
    550. 3.550 Query Loop An advanced block that allows displaying post types based on different query parameters and visual configur... 22 小时前
    551. 3.551 Read More Displays the link of a post, page, or any other content-type. Name: core/read-more Category: theme API Ver... 22 小时前
    552. 3.552 Site Logo Display an image to represent this site. Update this block and the changes apply everywhere. Name: core/si... 22 小时前
    553. 3.553 Site Tagline Describe in a few words what this site is about. This is important for search results, sharing on social me... 22 小时前
    554. 3.554 Site Title Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will als... 22 小时前
    555. 3.555 Template Part Edit the different global regions of your site, like the header, footer, sidebar, or create your own. Name:... 22 小时前
    556. 3.556 Term Count Displays the post count of a taxonomy term. Name: core/term-count Category: theme API Version: 3 Block Typ... 22 小时前
    557. 3.557 Term Description Display the description of categories, tags and custom taxonomies when viewing an archive. Name: core/term... 22 小时前
    558. 3.558 Term Name Displays the name of a taxonomy term. Name: core/term-name Category: theme API Version: 3 Block Type: Dyna... 22 小时前
    559. 3.559 Term Template Contains the block elements used to render a taxonomy term, like the name, description, and more. Name: co... 22 小时前
    560. 3.560 Terms Query An advanced block that allows displaying taxonomy terms based on different query parameters and visual conf... 22 小时前
    561. 3.561 Archives Display a date archive of your posts. Name: core/archives Category: widgets API Version: 3 Block Type: Dyn... 22 小时前
    562. 3.562 Calendar A calendar of your site’s posts. Name: core/calendar Category: widgets API Version: 3 Block Type: Dynamic ... 22 小时前
    563. 3.563 Terms List Display a list of all terms of a given taxonomy. Name: core/categories Category: widgets API Version: 3 Bl... 22 小时前
    564. 3.564 Input Field This block is experimental and may change or be removed without notice. The basic building block for forms.... 22 小时前
    565. 3.565 Form Submission Notification This block is experimental and may change or be removed without notice. Provide a notification message afte... 22 小时前
    566. 3.566 Form Submit Button This block is experimental and may change or be removed without notice. A submission button for forms. Name... 22 小时前
    567. 3.567 Form This block is experimental and may change or be removed without notice. A form. Name: core/form Category: ... 22 小时前
    568. 3.568 Custom HTML Add custom HTML code and preview it as you edit. Name: core/html Category: widgets API Version: 3 Block Ty... 22 小时前
    569. 3.569 Latest Comments Display a list of your most recent comments. Name: core/latest-comments Category: widgets API Version: 3 B... 22 小时前
    570. 3.570 Latest Posts Display a list of your most recent posts. Name: core/latest-posts Category: widgets API Version: 3 Block T... 22 小时前
    571. 3.571 Page List Item Displays a page inside a list of all pages. Name: core/page-list-item Category: widgets API Version: 3 Blo... 22 小时前
    572. 3.572 Page List Display a list of all pages. Name: core/page-list Category: widgets API Version: 3 Block Type: Dynamic (se... 22 小时前
    573. 3.573 RSS Display entries from any RSS or Atom feed. Name: core/rss Category: widgets API Version: 3 Block Type: Dyn... 22 小时前
    574. 3.574 Search Help visitors find your content. Name: core/search Category: widgets API Version: 3 Block Type: Dynamic (s... 22 小时前
    575. 3.575 Shortcode Insert additional custom elements with a WordPress shortcode. Name: core/shortcode Category: widgets API V... 22 小时前
    576. 3.576 Social Icon The Social Icon is a foundational block that displays various icons linking to different social profiles or... 22 小时前
    577. 3.577 Social Icons Display icons linking to your social profiles or sites. Name: core/social-links Category: widgets API Vers... 22 小时前
    578. 3.578 Tag Cloud A cloud of popular keywords, each sized by how often it appears. Name: core/tag-cloud Category: widgets AP... 22 小时前
  4. 第 4 章 Themes 138 页
    1. 4.1 Credits @ancawonka @Anthonynotes @atachibana @austingunter @bandonrandon @utz119 @BFTrick @BigActual @bkozma @bobor... 22 小时前
    2. 4.2 Classic themes In this section you will find information about developing classic WordPress themes. 22 小时前
    3. 4.3 Global Settings and Styles (theme.json) Welcome to the Global Settings and Styles documentation. In this chapter you will learn everything you need... 22 小时前
    4. 4.4 Templates Welcome to the Templates documentation. In this chapter you will learn how the WordPress block template sys... 22 小时前
    5. 4.5 Features Welcome to the Features documentation. In this chapter, you will learn about various features supported by ... 22 小时前
    6. 4.6 Core Concepts Welcome to the Core Concepts documentation. The goal of this chapter is to introduce you to the foundationa... 22 小时前
    7. 4.7 Patterns Patterns are one of the most useful tools for theme development, allowing you to reuse groups of blocks acr... 22 小时前
    8. 4.8 Theme Handbook *Welcome to the WordPress Theme Developer Handbook, your resource for learning all about the exciting world... 22 小时前
    9. 4.9 Getting Started Welcome to the Getting Started documentation. This chapter is primarily intended to introduce you to naviga... 22 小时前
    10. 4.10 Advanced Topics Welcome to the advanced theme topics documentation. In this chapter, you will learn about some of the more ... 22 小时前
    11. 4.11 Releasing Your Theme This section covers the requirements and submission process for releasing your theme into the WordPress The... 22 小时前
    12. 4.12 Who Is This Handbook For? The Theme Developer Handbook is a self-contained resource to help you learn the fundamental principles of c... 22 小时前
    13. 4.13 Reading This Handbook The goal of this handbook is to walk you through the basics of modern WordPress theme development in its ea... 22 小时前
    14. 4.14 Tools and Setup In this document, you will learn about the tools that you will need to get off to a solid start when buildi... 22 小时前
    15. 4.15 Quick-Start Guide The first step is always the hardest to take. Now that you’ve made it this far into the Getting Started cha... 22 小时前
    16. 4.16 What Is a Theme? A WordPress theme represents the design of your website. It can control everything from colors, to fonts, t... 22 小时前
    17. 4.17 Template Hierarchy As discussed, template files are modular, reusable files, used to generate the web pages on your WordPress ... 22 小时前
    18. 4.18 Template Tags Template tags are used within themes to retrieve content from your database. The content could be anything ... 22 小时前
    19. 4.19 The Loop The Loop is the default mechanism WordPress uses for outputting posts through a theme’s template files. How... 22 小时前
    20. 4.20 Theme Functions Functions.php can be used by both classic themes, block themes, and child themes. The functions.php file i... 22 小时前
    21. 4.21 Linking Theme Files & Directories Linking to Core Theme Files As you’ve learned, WordPress themes are built from a number of different templa... 22 小时前
    22. 4.22 Including CSS & JavaScript (Archived) This is an old page that has been archived in favor of the newer Including Assets documentation in the Core... 22 小时前
    23. 4.23 Conditional Tags Conditional Tags can be used in your Template Files in classic themes to alter the display of content depen... 22 小时前
    24. 4.24 Post Types There are many different types of content in WordPress. These content types are normally described as Post ... 22 小时前
    25. 4.25 Categories, Tags, & Custom Taxonomies Categories, tags, and taxonomies are all related and can be easily confused.   We’ll use the example of bui... 22 小时前
    26. 4.26 Template Files Template files are used throughout WordPress themes, but first let’s learn about the terminology. Template ... 22 小时前
    27. 4.27 Reworking Theme Files & Organization Theme folder and file structure While WordPress themes technically only require two files ( index.php and ... 22 小时前
    28. 4.28 Tools & Resources Whether you’re building your very first theme or your tenth, the following resources are meant to help ease... 22 小时前
    29. 4.29 Main Stylesheet (style.css) The style.css is a stylesheet (CSS) file required for every WordPress theme. It controls the presentation (... 22 小时前
    30. 4.30 Organizing Theme Files While WordPress themes technically only require two files ( index.php in classic themes and index.html in ... 22 小时前
    31. 4.31 Custom Headers Custom Header Custom headers allow site owners to upload their own “title” image to their site, which can b... 22 小时前
    32. 4.32 Sidebars What are Sidebars A sidebar is any widgetized area of your theme. Widget areas are places in your theme whe... 22 小时前
    33. 4.33 Widgets A widget adds content and features to a widget area (also called a sidebar). Widget areas provide a way for... 22 小时前
    34. 4.34 Navigation Menus Navigation Menus are customizable menus in your theme. They allow users to add Pages, Posts, Categories, an... 22 小时前
    35. 4.35 Pagination Pagination allows your user to page back and forth through multiple pages of content. WordPress can use pag... 22 小时前
    36. 4.36 Media WordPress enables theme developers to customize the look, feel, and functionality of the platform’s core me... 22 小时前
    37. 4.37 Featured Images & Post Thumbnails Featured images (also sometimes called Post Thumbnails) are images that represent an individual Post, Page,... 22 小时前
    38. 4.38 Post Formats A Post Format is used by a theme for presenting posts in a certain format and style. The Post Formats featu... 22 小时前
    39. 4.39 Internationalization What is internationalization? Internationalization is the process of developing your theme, so it can easil... 22 小时前
    40. 4.40 Localization What is localization? Localization describes the subsequent process of translating an internationalized the... 22 小时前
    41. 4.41 Accessibility A WordPress theme should generate pages everyone can use, including those who cannot see or use a mouse. To... 22 小时前
    42. 4.42 Administration Menus This is no longer the recommended way to work with theme options. The Customizer API is the recommended way... 22 小时前
    43. 4.43 404 Pages A 404 page is important to add into your theme in case a user stumbles upon a page that doesn’t exist or ha... 22 小时前
    44. 4.44 Block theme accessibility Block themes support accessibility and simplify the process for adding accessibility. Landmark Group, Templ... 22 小时前
    45. 4.45 Core-Supported Features This page will list and somewhat detail all core-supported features. Each feature will have its own page. 22 小时前
    46. 4.46 Custom Logo What is a Custom Logo? Using a custom logo allows site owners to upload an image for their website, which c... 22 小时前
    47. 4.47 Sticky Posts A Sticky Post is the post will be placed at the top of the front page of posts. This feature is only availa... 22 小时前
    48. 4.48 Custom Front Page Templates By default, WordPress shows your most recent posts in reverse chronological order on the front page of your... 22 小时前
    49. 4.49 Custom Backgrounds Custom Backgrounds is a theme feature that provides for customization of the background color and image. Th... 22 小时前
    50. 4.50 Child Themes Child themes are extensions of a parent theme. They allow you to modify an existing theme without directly ... 22 小时前
    51. 4.51 UI Best Practices Logo Homepage Link The logo at the top each page should send the user to the homepage of your site. If you ... 22 小时前
    52. 4.52 JavaScript Best Practices Many themes use JavaScript to provide interactivity, animation or other enhancements. These best practices ... 22 小时前
    53. 4.53 Theme Testing The Theme Unit Test data is a WordPress import file will fill a WordPress site with enough stub data (posts... 22 小时前
    54. 4.54 Plugin API Hooks A theme should work well with WordPress plugins. Plugins add functionality by using actions and filters, wh... 22 小时前
    55. 4.55 Internationalization Internationalization is the process of developing your theme in such a way that its custom text can be tran... 22 小时前
    56. 4.56 Build Process A build process is a method of converting source code files into a final build/production version that can ... 22 小时前
    57. 4.57 Privacy WordPress 4.9.6 introduced several tools to help sites meet the requirements of the European Union’s new GD... 22 小时前
    58. 4.58 Debugging Debugging is the practice of finding and fixing errors in any software that you build. And it is an essenti... 22 小时前
    59. 4.59 Security When releasing any code out into the world, whether it will only exist on your own site or hundreds of thou... 22 小时前
    60. 4.60 Testing Whether you are planning to share your WordPress theme with a broad audience or aiming for a specific platf... 22 小时前
    61. 4.61 Publishing Themes Once you have made it through the earlier documentation in this handbook and finally built your first theme... 22 小时前
    62. 4.62 Required Theme Files Block theme: See Create a Block Theme for building a block theme\ Classic themes must include the required ... 22 小时前
    63. 4.63 Testing If you’ve followed this handbook, you’ll already have a good grasp on the testing required before submittin... 22 小时前
    64. 4.64 Theme Review Guidelines The WordPress Themes Team provides and maintains the theme review guidelines as part of their task as WordP... 22 小时前
    65. 4.65 Writing Documentation Documentation is important for themes as it provides a way for users to understand what a theme does and do... 22 小时前
    66. 4.66 Submitting Your Theme to WordPress.org Before themes are added to the WordPress Theme Directory, they are closely reviewed by the Themes team to m... 22 小时前
    67. 4.67 Updating Your Theme There are two ways to update your theme, by uploading a Zip file or using subversion (SVN). Uploading a Zip... 22 小时前
    68. 4.68 Feedback Giving Feedback We welcome suggestions to improve the article, whether it is to add new topics or to rectif... 22 小时前
    69. 4.69 Images Images This section describes the handling of images in the Media Library. If you want to display the image... 22 小时前
    70. 4.70 Audio Audio You can directly embed audio files and play them back using a simple shortcode [audio]. Supported fil... 22 小时前
    71. 4.71 Video Video The WordPress video feature allows you to embed video files and play them back using a simple shortco... 22 小时前
    72. 4.72 Galleries Galleries Image galleries are the best way to showcase your pictures on your WordPress sites. WordPress bun... 22 小时前
    73. 4.73 Customizer Objects The Customize API is object-oriented. There are four main types of Customizer objects: Panels, Sections, Se... 22 小时前
    74. 4.74 Tools for Improved User Experience Contextual Controls, Sections, and Panels WordPress 4.0 and 4.1 also added support for making parts of the ... 22 小时前
    75. 4.75 The Customizer JavaScript API In WordPress 4.1, newly-expanded JavaScript APIs were introduced for all customizer objects. The entire Jav... 22 小时前
    76. 4.76 JavaScript/Underscore.js-Rendered Custom Controls WordPress 4.1 also added support for rendering JavaScript-heavy and/or high-quantity controls entirely with... 22 小时前
    77. 4.77 Advanced Usage The customize API is actively developed; this page contains additional more advanced topics. Additional dis... 22 小时前
    78. 4.78 Theme security issues Please do not report security issues with WordPress Core to the themes team. To report an issue with WordPr... 21 小时前
    79. 4.79 Theme Options – The Customize API The Customize API (Customizer) is a framework for live-previewing any change to WordPress. It provides a un... 21 小时前
    80. 4.80 Template Files We introduced template files earlier in the handbook.  This next section is going to break up the different... 21 小时前
    81. 4.81 References This section contains lists of Template Tags and Conditional Tags. Template Tags are used in your Template ... 21 小时前
    82. 4.82 Your First Theme Block Theme This section is for a block theme.  Required Files The only files needed for a block theme is, ... 21 小时前
    83. 4.83 Theme Basics In this chapter, you’ll begin learning how to build a theme. The anatomy of a theme and its parts will be b... 21 小时前
    84. 4.84 Theme Functionality Now that you’re familiar with the basics of theme development, it’s time to start digging deeper into the w... 21 小时前
    85. 4.85 Introduction to theme.json theme.json is a configuration file that lets you define the global settings, styles, and more for your them... 21 小时前
    86. 4.86 Settings The settings property in theme.json lets you configure a wide range of settings for a WordPress install. ... 21 小时前
    87. 4.87 Styles The styles property in theme.json lets you configure settings at the global level, for individual element... 21 小时前
    88. 4.88 Custom Templates WordPress lets you register custom templates in theme.json. More specifically, you can register single pos... 21 小时前
    89. 4.89 Patterns The patterns property in theme.json lets you bundle patterns from the WordPress Pattern Directory with yo... 21 小时前
    90. 4.90 Template Parts Template parts are small sections (i.e., parts) that you can include in top-level templates. Following the ... 21 小时前
    91. 4.91 Style Variations Unlike most things here in the Global Settings and Styles documentation, style variations are not things yo... 21 小时前
    92. 4.92 Appearance Tools settings.appearanceTools is a unique property in theme.json that behaves as a catchall for multiple other ... 21 小时前
    93. 4.93 Border The settings.border property in theme.json gives you control over the global border settings for blocks i... 21 小时前
    94. 4.94 Color Color is one of the primary components of design. You can create a theme that is dark and moody, fun and li... 21 小时前
    95. 4.95 Custom The settings.custom property is unique among other settings in theme.json. As its name implies, it is a c... 21 小时前
    96. 4.96 Dimensions The settings.dimensions property in theme.json gives you control over the global dimensions settings for ... 21 小时前
    97. 4.97 Layout The settings.layout property in theme.json is an object that stores layout-related settings that you can ... 21 小时前
    98. 4.98 Lightbox settings.lightbox is a specific setting that you can enable for supported blocks. It enables a lightbox fea... 21 小时前
    99. 4.99 Position The settings.position property in theme.json gives you control over the global positioning settings for b... 21 小时前
    100. 4.100 Shadow The settings.shadow property in theme.json currently lets you create custom shadow presets. As of WordPre... 21 小时前
    101. 4.101 Spacing Spacing is one of the most complex parts of web design. It involves combining things like margin, padding, ... 21 小时前
    102. 4.102 Typography Typography is a wide-ranging subject in web design, and no single piece of documentation could do it justic... 21 小时前
    103. 4.103 Use Root Padding Aware Alignments The settings.useRootPaddingAwareAlignments property can be one of the most confusing settings in theme.js... 21 小时前
    104. 4.104 Blocks Most settings in theme.json let you configure properties at the global level. This means that they apply t... 21 小时前
    105. 4.105 Settings Reference The document is a reference to the available settings properties that you can configure via the settings o... 21 小时前
    106. 4.106 Applying Styles Traditionally, theme authors would style everything from a stylesheet—and they still sometimes must. In mod... 21 小时前
    107. 4.107 Using Presets In the theme.json Settings documentation, you learned how to register custom presets, such as a color pale... 21 小时前
    108. 4.108 Styles Reference This is a reference to the available style properties that you can apply to the root element (global), indi... 21 小时前
    109. 4.109 Introduction to Templates Like nearly all content management systems, WordPress uses a templating system to handle the output of cont... 21 小时前
    110. 4.110 Templates Templates are one of the most important aspects of theme development. They are files that you put together ... 21 小时前
    111. 4.111 Template Hierarchy As covered in the Templates documentation, templates are reusable files that are used to generate the docum... 21 小时前
    112. 4.112 Template Parts Templates represent the top-level document structure for the front end of a website. But template parts rep... 21 小时前
    113. 4.113 Block Patterns (Archived) This documentation article has now been archived and replaced with the newer Patterns chapter of the Theme ... 21 小时前
    114. 4.114 Block Style Variations Block style variations (block styles, for short) let you create alternate styles for individual blocks. Reg... 21 小时前
    115. 4.115 Block Stylesheets When styling blocks, you should always do so via the theme.json styles property if possible. This ensures ... 21 小时前
    116. 4.116 Block Variations The Block Variations API is a powerful feature that allows you to extend any registered blocks. Basically, ... 21 小时前
    117. 4.117 Theme Structure In the Getting Started chapter, you learned the basics of what a theme is and how to get one up and running... 21 小时前
    118. 4.118 Main Stylesheet (style.css) As described in Theme Structure, WordPress requires that all themes include a style.css file. Its most imp... 21 小时前
    119. 4.119 Templates In block themes, templates are made up of a collection of blocks. You might have a Site Logo block sitting ... 21 小时前
    120. 4.120 Custom Functionality (functions.php) This document will introduce you to the functions.php file. It is one of the optional standard files you f... 21 小时前
    121. 4.121 Including Assets Many block themes do not need to load any assets. For design aspects, specifically, much of this can be han... 21 小时前
    122. 4.122 Global Settings and Styles As you learned in Theme Structure, theme.json is a standard file that WordPress looks for in your theme. W... 21 小时前
    123. 4.123 Introduction to Patterns Block patterns (“patterns,” for short) are one of the most powerful features at a theme author’s disposal. ... 21 小时前
    124. 4.124 Registering Patterns In Introduction to Patterns, you learned how to create patterns from the WordPress admin interface. Now it’... 21 小时前
    125. 4.125 Using PHP in Patterns One of the biggest advantages of patterns over features like templates and template parts is that you can u... 21 小时前
    126. 4.126 Usage in Templates When building themes, patterns are not merely reusable sections of blocks that users can add to their conte... 21 小时前
    127. 4.127 Starter Patterns The WordPress block editor is powerful and can handle many different layouts and designs. However, when bui... 21 小时前
    128. 4.128 Block Type Patterns One of the most useful capabilities of patterns is the ability to tie them directly to one or more block ty... 21 小时前
    129. 4.129 Patterns and Block Locking The Block Locking API is a powerful set of features that lets you lock the behavior of blocks and how users... 21 小时前
    130. 4.130 Page Templates Page templates are a specific type of template file that can be applied to a specific page or groups of pag... 21 小时前
    131. 4.131 Taxonomy Templates When a visitor clicks on a hyperlink to category, tag or custom taxonomy, WordPress displays a page of post... 21 小时前
    132. 4.132 Post Template Files There are many template files that WordPress uses to display the Post post type. Any content dealing with a... 21 小时前
    133. 4.133 Attachment Template Files Attachments are a special post type that holds information about a file uploaded through the WordPress medi... 21 小时前
    134. 4.134 Custom Post Type Template Files The WordPress theme system supports custom templates for custom post types. Custom templates for the single... 21 小时前
    135. 4.135 Partial and Miscellaneous Template Files Introduction Not all template files generate the entire content that will be rendered by the browser. Some ... 21 小时前
    136. 4.136 Comment Template WordPress displays comments in your theme based on the settings and code in the comments.php file within y... 21 小时前
    137. 4.137 List of Template Tags Complete List of Template Tags Template tags files are stored in the wp-includes directory. The files have... 21 小时前
    138. 4.138 List of Conditional Tags Conditional Tags are a boolean data type that can be used in your Template Files to alter the display of co... 21 小时前
  5. 第 5 章 Wpcs 13 页
    1. 5.1 Markdown Style Guide Headings # Heading h1 ## Heading h2 ### Heading h3 #### Heading h4 ##### Heading h5 ###### Heading h6 Note:... 21 小时前
    2. 5.2 Best Practices WordPress is a big project with thousands of contributors. It’s important that best practices are followed ... 21 小时前
    3. 5.3 WordPress Coding Standards The purpose of the WordPress Coding Standards is to create a baseline for collaboration and review within v... 21 小时前
    4. 5.4 Inline Documentation Standards Inline documentation provides a good resource for core developers in future development, and other develope... 21 小时前
    5. 5.5 Changelog 2020-09-25 Update code examples to use Markdown code fence notation instead of shortcodes. 2019-12-21 Updat... 21 小时前
    6. 5.6 GitHub Actions Workflow Standards GitHub Actions workflows operate in a highly privileged software supply chain environment. Workflows can ac... 21 小时前
    7. 5.7 Accessibility Coding Standards Code integrated into the WordPress ecosystem – including WordPress core, WordPress.org websites, and offici... 21 小时前
    8. 5.8 CSS Coding Standards Like any coding standard, the purpose of the WordPress CSS Coding Standards is to create a baseline for col... 21 小时前
    9. 5.9 HTML Coding Standards HTML Validation All HTML pages should be verified against the W3C validator to ensure that the markup is we... 21 小时前
    10. 5.10 JavaScript Coding Standards JavaScript has become a critical component in developing WordPress-based applications (themes and plugins) ... 21 小时前
    11. 5.11 PHP Coding Standards These PHP coding standards are intended for the WordPress community as a whole. They are mandatory for Word... 21 小时前
    12. 5.12 JavaScript Documentation Standards WordPress follows the JSDoc 3 standard for inline JavaScript documentation. What Should Be Documented JavaS... 21 小时前
    13. 5.13 PHP Documentation Standards WordPress uses a customized documentation schema that draws inspiration from PHPDoc, an evolving standard f... 21 小时前