Fires once an attachment has been added.| WordPress Developer Resources
Rewind the loop posts.| WordPress Developer Resources
In this chapter, you’ll begin learning how to build a theme. The anatomy of a theme and its parts will be broken down and explained.…| WordPress Developer Resources
Block patterns (“patterns,” for short) are one of the most powerful features at a theme author’s disposal. Introduced in WordPress…| WordPress Developer Resources
Filter to disable remote block patterns.| WordPress Developer Resources
Unregisters a pattern category.| WordPress Developer Resources
Registers a new pattern category.| WordPress Developer Resources
Checks if a block type is registered.| WordPress Developer Resources
Core class used for interacting with block types.| WordPress Developer Resources
Patterns are one of the most useful tools for theme development, allowing you to reuse groups of blocks across a wide variety of scenarios.…| WordPress Developer Resources
Retrieves an option value based on an option name.| WordPress Developer Resources
Marks something as being incorrectly called.| WordPress Developer Resources
A step-by-step walkthrough of how to register block variations using PHP in WordPress 6.5.| WordPress Developer Blog
Block API Reference| WordPress Developer Resources
Fires in each custom column in the Posts list table.| WordPress Developer Resources
Filters the columns displayed in the Posts list table for a specific post type.| WordPress Developer Resources
Filters the name of the primary column for the current list table.| WordPress Developer Resources
File: wp-admin/includes/class-wp-posts-list-table.php| WordPress Developer Resources
Handles the default column output.| WordPress Developer Resources
Code Reference archive for WordPress hooks.| WordPress Developer Resources
The API includes a number of global parameters (also called "meta-parameters") which control how the API handles the request/response…| WordPress Developer Resources
Iterate the post index in the loop.| WordPress Developer Resources
Roles and capabilities are two important aspects of WordPress that allow you to control user privileges. WordPress stores the Roles and…| WordPress Developer Resources
In the Getting Started chapter, you learned the basics of what a theme is and how to get one up and running without code. A no-code approach…| WordPress Developer Resources
Discover the possibilities of theme.json server-side filters, from dynamically modifying color palettes to restricting block controls based on user permissions.| WordPress Developer Blog
Builds an object with all taxonomy labels out of a taxonomy object.| WordPress Developer Resources
Builds an object with all post type labels out of a post type object.| WordPress Developer Resources
WordPress comes with five default post types: post, page, attachment, revision, and menu. While developing your plugin, you may need to…| WordPress Developer Resources
Performs an HTTP request using the POST method and returns its response.| WordPress Developer Resources
This page lists the blocks included in the block-library package.| WordPress Developer Resources
Custom blocks for the Block Editor in WordPress are typically registered using plugins and are defined through a specific set of files. The…| WordPress Developer Resources
This document introduces the main concepts related to styles that affect the user content in the block editor. It points to the relevant…| WordPress Developer Resources
Template and template part flows| WordPress Developer Resources
The format| WordPress Developer Resources
Block style variations (block styles, for short) let you create alternate styles for individual blocks. Registered styles appear in the user…| WordPress Developer Resources
WordPress 6.6 introduced support for custom aspect ratios. Learn how to register your own via theme.json.| WordPress Developer Blog
The Loop is the default mechanism WordPress uses for outputting posts through a theme’s template files. How many posts are retrieved…| WordPress Developer Resources
Displays the post content.| WordPress Developer Resources
Fires for each custom column of a specific post type in the Posts list table.| WordPress Developer Resources
This module allows you to create and use standalone block editors.| WordPress Developer Resources
The WordPress REST API is organized around REST, and is designed to have predictable, resource-oriented URLs and to use HTTP response codes…| WordPress Developer Resources
If your plugin allows users to submit data—be it on the Admin or the Public side—it should check for User Capabilities. User Roles and…| WordPress Developer Resources
As you learned in Theme Structure, theme.json is a standard file that WordPress looks for in your theme. While it is not technically…| WordPress Developer Resources
Actions are one of the two types of Hooks. They provide a way for running a function at a specific point in the execution of WordPress Core,…| WordPress Developer Resources
Templates represent the top-level document structure for the front end of a website. But template parts represent smaller sections of…| WordPress Developer Resources
Filters text content and strips out disallowed HTML.| WordPress Developer Resources
Gets an HTML img element representing an image attachment.| WordPress Developer Resources
Registers theme support for a given feature.| WordPress Developer Resources
Blocks| WordPress Developer Resources
Registers a block type. The recommended way is to register a block type using the metadata stored in the block.json file.| WordPress Developer Resources
Developing blocks for the Block Editor often involves using modern JavaScript (ESNext and JSX), and most examples here in the Block Editor…| WordPress Developer Resources
Loads a template part into a template.| WordPress Developer Resources
Loads sidebar template.| WordPress Developer Resources
Loads header template.| WordPress Developer Resources
Loads footer template.| WordPress Developer Resources
Template tags are used within themes to retrieve content from your database. The content could be anything from a blog title to a complete…| WordPress Developer Resources
Retrieves a post meta field for the given post ID.| WordPress Developer Resources
In this page we'll break down some of the key concepts and terms associated with the REST API: Routes & Endpoints, Requests, Responses,…| WordPress Developer Resources
As described in Theme Structure, WordPress requires that all themes include a style.css file. Its most important function is to…| WordPress Developer Resources
Many block themes do not need to load any assets. For design aspects, specifically, much of this can be handled through the Global Settings…| WordPress Developer Resources
This document will introduce you to the functions.php file. It is one of the optional standard files you first learned about in Theme…| WordPress Developer Resources
Enqueues a CSS stylesheet.| WordPress Developer Resources
Retrieves the URL of a file in the theme.| WordPress Developer Resources
Retrieves the path of a file in the theme.| WordPress Developer Resources
Welcome to the advanced theme topics documentation. In this chapter, you will learn about some of the more complex features, techniques, and…| WordPress Developer Resources
Escaping output is the process of securing output data by stripping out unwanted data, like malformed HTML or script tags. This process…| WordPress Developer Resources
This page will explain some aspects of the plugin directory, and explain of the more obvious aspects which a lot of people miss. To make…| WordPress Developer Resources
SVN, or Subversion, is a version control system similar to Git. It can be used via command line, or one of numerous GUI applications, such…| WordPress Developer Resources
Categories, tags, and taxonomies are all related and can be easily confused. We’ll use the example of building a theme for a recipe…| WordPress Developer Resources
WordPress' data module serves as a hub to manage application state for both plugins and WordPress itself, providing tools to manage data…| WordPress Developer Resources
The new Blocks include baseline support in all themes, enhancements to opt-in to and the ability to extend and customize.| WordPress Developer Resources
Block attributes provide information about the data stored by a block. For example, rich content, a list of image URLs, a background color,…| WordPress Developer Resources
Fires when scripts and styles are enqueued.| WordPress Developer Resources
Overview| WordPress Developer Resources
Template files are used throughout WordPress themes, but first let’s learn about the terminology. Template Terminology The term…| WordPress Developer Resources
Conditional Tags can be used in your Template Files in classic themes to alter the display of content depending on the conditions that the…| WordPress Developer Resources
When registering a block with JavaScript on the client, the edit and save functions provide the interface for how a block is going to be…| WordPress Developer Resources
Displays the permalink for the current post.| WordPress Developer Resources
This page provides a comprehensive guide to the principles and usage of the Deprecation API. For an introduction check out the tutorial on…| WordPress Developer Resources
The WordPress REST API is more than just a set of default routes. It is also a tool for creating custom routes and endpoints. The WordPress…| WordPress Developer Resources
One of the most important files in your WordPress installation is the wp-config.php file. This file is located in the root of your WordPress…| WordPress Developer Resources
WordPress 5.8 comes with a new mechanism to configure the editor that enables a finer-grained control and introduces the first step in…| WordPress Developer Resources
Registers a post type.| WordPress Developer Resources
Core class used for querying users.| WordPress Developer Resources
The goal of the page is to inform users who manage a WordPress site about general security best practices both in terms of environment level…| WordPress Developer Resources
This is the living specification for version 3 of theme.json. This version works with WordPress 6.6 or later, and the latest Gutenberg plugin.| WordPress Developer Resources
In Introduction to Patterns, you learned how to create patterns from the WordPress admin interface. Now it’s time to learn how to add…| WordPress Developer Resources
The Block Variations API allows you to define multiple versions (variations) of a block. A block variation differs from the original block…| WordPress Developer Resources
On computer file systems, different files and directories have permissions that specify who and what can read, write, modify and access…| WordPress Developer Resources
One of the most important files in your WordPress installation is the wp-config.php file. This file is located in the root of your WordPress…| WordPress Developer Resources
If you haven’t noticed it yet, the WordPress Playground is an amazing feature that lets anyone safely run a temporary WordPress install…| WordPress Developer Resources
WordPress Backups| WordPress Developer Resources
Block context is a feature which enables ancestor blocks to provide values which can be consumed by descendent blocks within its own…| WordPress Developer Resources
Debugging PHP code is part of any project, but WordPress comes with specific debugging systems designed to simplify the process as well as…| WordPress Developer Resources
Must-use plugins (a.k.a. mu-plugins) are plugins installed in a special directory inside the content folder and which are automatically…| WordPress Developer Resources
Getting Started At its simplest, a WordPress plugin is a PHP file with a WordPress plugin header comment. It’s highly recommended that…| WordPress Developer Resources
Creates or modifies a taxonomy object.| WordPress Developer Resources
As described in Getting Started, the main PHP file should include header comment what tells WordPress that a file is a plugin and provides…| WordPress Developer Resources