Title: What’s new for developers? (May 2024)
Author: Justin Tadlock
Published: May 10, 2024
Last modified: June 10, 2024

---

 * [Showcase](https://wordpress.org/showcase/)
 * [Plugins](https://wordpress.org/plugins/)
 * [Themes](https://wordpress.org/themes/)
 * [Hosting](https://wordpress.org/hosting/)
 * [News](https://wordpress.org/news/)
    - [Learn WordPress](https://learn.wordpress.org/)
    - [Documentation](https://wordpress.org/documentation/)
    - [Education](https://wordpress.org/education/)
    - [Forums](https://wordpress.org/support/forums/)
    - [Developers](https://developer.wordpress.org/)
    - [Blocks](https://wordpress.org/blocks/)
    - [Patterns](https://wordpress.org/patterns/)
    - [Photos](https://wordpress.org/photos/)
    - [Openverse ︎](https://openverse.org/)
    - [WordPress.tv ︎](https://wordpress.tv/)
 *  - [About WordPress](https://wordpress.org/about/)
    - [Make WordPress](https://make.wordpress.org/)
    - [Events](https://events.wordpress.org/)
    - [Five for the Future](https://wordpress.org/five-for-the-future/)
    - [Enterprise](https://wordpress.org/enterprise/)
    - [Gutenberg ︎](https://wordpress.org/gutenberg/)
    - [Job Board ︎](https://jobs.wordpress.net/)
 * [Swag ︎](https://mercantile.wordpress.org/)
 * [Get WordPress](https://wordpress.org/download/)

Search in WordPress.org

 [ Get WordPress ](https://wordpress.org/download/)

[WordPress Developer Blog](https://developer.wordpress.org/news)

What’s new for developers? (May 2024)

 * [Snippets](https://developer.wordpress.org/news/snippets/)
    - [Blocks](https://developer.wordpress.org/news/category/blocks/)
    - [Concepts](https://developer.wordpress.org/news/category/concepts/)
    - [Common APIs](https://developer.wordpress.org/news/category/common-apis/)
    - [Design](https://developer.wordpress.org/news/category/design/)
    - [Playground](https://developer.wordpress.org/news/category/playground/)
    - [Plugins](https://developer.wordpress.org/news/category/plugins/)
    - [Themes](https://developer.wordpress.org/news/category/themes/)
 *  - [About this site](https://developer.wordpress.org/news/about/)
    - [Updates](https://developer.wordpress.org/news/category/updates/)
    - [How to contribute](https://developer.wordpress.org/news/how-to-contribute/)
    - [Tips and guidelines](https://developer.wordpress.org/news/tips-and-guidelines-for-writers/)
 * [Subscribe](https://developer.wordpress.org/news/subscribe/)
 * [Developer Resources](https://developer.wordpress.org/)

 * [Snippets](https://developer.wordpress.org/news/snippets/)
    - [Blocks](https://developer.wordpress.org/news/category/blocks/)
    - [Concepts](https://developer.wordpress.org/news/category/concepts/)
    - [Common APIs](https://developer.wordpress.org/news/category/common-apis/)
    - [Design](https://developer.wordpress.org/news/category/design/)
    - [Playground](https://developer.wordpress.org/news/category/playground/)
    - [Plugins](https://developer.wordpress.org/news/category/plugins/)
    - [Themes](https://developer.wordpress.org/news/category/themes/)
 *  - [About this site](https://developer.wordpress.org/news/about/)
    - [Updates](https://developer.wordpress.org/news/category/updates/)
    - [How to contribute](https://developer.wordpress.org/news/how-to-contribute/)
    - [Tips and guidelines](https://developer.wordpress.org/news/tips-and-guidelines-for-writers/)
 * [Subscribe](https://developer.wordpress.org/news/subscribe/)
 * [Developer Resources](https://developer.wordpress.org/)

# What’s new for developers? (May 2024)

By [Justin Tadlock](https://profiles.wordpress.org/greenshady/)

May 10, 2024

[Blocks](https://developer.wordpress.org/news/category/blocks/), [Plugins](https://developer.wordpress.org/news/category/plugins/),
[Themes](https://developer.wordpress.org/news/category/themes/)

It’s hard to believe that it’s been over a month since the dev-focused [WordPress 6.5](https://wordpress.org/download/releases/6-5/)
shipped. At this point, work toward version 6.6 is well underway, and many of the
changes in the past few weeks have iterated on the new APIs from the last release.

The [WordPress 6.5.3](https://wordpress.org/news/2024/05/wordpress-6-5-3-maintenance-release/)
maintenance release also landed on May 7, 2024. The update fixed 12 bugs in Core
and nine in the Block Editor. Be sure to upgrade if you haven’t done so already.

But let’s hop into the new stuff. As usual, make sure to test the below changes 
against WordPress trunk and the latest version of the Gutenberg plugin. The main
goals of these monthly roundups are to help you stay updated and prepare for the
next WordPress release.

Table of Contents

 1. [Highlights](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#highlights)
 2.  a. [The road to WordPress 6.6](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#the-road-to-wordpress-6-6)
     b. [Color and typography style variations](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#color-and-typography-style-variations)
     c. [Community blueprints for Playground](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#community-blueprints-for-playground)
 3. [Plugins and tools](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#plugins-and-tools)
 4.  a. [HTML API progress report](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#html-api-progress-report)
     b. [Stabilizing experimental components](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#stabilizing-experimental-components)
     c. [New and updated components](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#new-and-updated-components)
     d. [Editor unification updates](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#editor-unification-updates)
     e. [Interactivity API updates](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#interactivity-api-updates)
     f. [Other noteworthy changes](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#other-noteworthy-changes)
 5. [Themes](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#themes)
 6.  a.  [Default font sizes setting triggers theme.json upgrade to version 3](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#default-font-sizes-setting-triggers-theme-json-upgrade-to-version-3)
     b.  [Layout updates](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#layout-updates)
     c.  [Text alignment block support](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#text-alignment-block-support)
     d.  [Post classes in the editor](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#post-classes-in-the-editor)
     e.  [Block fixes](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#block-fixes)
     f.  [Background image updates](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#background-image-updates)
     g.  [Full-page, client-side navigation experiment](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#full-page-client-side-navigation-experiment)
     h.  [Negative margin support](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#negative-margin-support)
     i.  [Default theme updates](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#default-theme-updates)
     j.  [Other notable changes](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#other-notable-changes)
 7. [Resources](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#resources)
 8.  a. [WordPress News](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#wordpress-news)
     b. [Developer Hours](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#developer-hours)
     c. [Developer Blog](https://developer.wordpress.org/news/2024/05/10/whats-new-for-developers-may-2024/#developer-blog)

## Highlights

### The road to WordPress 6.6

A week ago, the [WordPress 6.6 roadmap](https://make.wordpress.org/core/2024/05/03/roadmap-to-6-6/)
was published on the Make Core blog. Many of the plans for the upcoming release,
which is expected to ship on July 16, 2024, appear to focus on the user experience,
themes, and refinements of existing APIs.

Some things to look forward to include:

 * Continued work on Data Views.
 * Mixing and matching color and typography sets defined via global style variations.
 * Synced patterns, which were punted from the 6.5 release.
 * Expanded block style variations support, including a dedicated `/block-styles`
   directory for themes.
 * Enhanced grid support for blocks and the Grid variation for the Group block.
 * Shadow tools, negative margin support, aspect ratio presets, and more.

Also check out the summary of the latest [Hallway Hangout on what’s coming in Gutenberg](https://make.wordpress.org/core/2024/04/25/summary-of-hallway-hangout-on-whats-next-in-gutenberg/),
which includes several demos of in-progress features.

### Color and typography style variations

![](https://developer.wordpress.org/news/files/2024/05/global-styles-colors.webp)

Selecting a global color variation.

On a personal note, one of the features that I’m most looking forward to is expanded
global style variations. If you build themes, I hope this excites you just as much.

Gutenberg 18.3 introduced a new method of defining [color or typography-only global style variations](https://github.com/WordPress/gutenberg/pull/60220).
When you define variations in your theme’s `/styles` folder with only color or typography
styles, they won’t appear as full variations. Instead, they appear under the new**
Colors** and **Typography** panels in the Site Editor sidebar.

### Community blueprints for Playground

![](https://developer.wordpress.org/news/files/2024/05/playground-blueprint-language-
pack.webp)

Automatically installing the Japanese language pack with a Blueprint.

There is now an [official repository](https://github.com/WordPress/blueprints) for
community-created blueprints for Playground. The first 10 blueprints are available
in the [Blueprints Gallery](https://github.com/WordPress/blueprints/blob/trunk/GALLERY.md),
providing live demos of various WordPresss setups.

The initial gallery has a wide variety of blueprints to try, but they primarily 
serve as examples to learn the system. The goal is to get you to start creating 
your own blueprints to showcase via Playground. And just as a reminder, you can 
[add blueprints to your plugins](https://make.wordpress.org/meta/2023/11/22/plugin-directory-preview-button-revisited/)
in the Plugin Directory to give users a live preview.

## Plugins and tools

### HTML API progress report

A [progress report on the HTML API](https://make.wordpress.org/core/2024/05/07/progress-report-html-api-2/)
was recently published, which includes an overview of ongoing internal improvements
and the next steps. Future updates should include:

 * Reading and modifying block attributes
 * Full HTML support
 * [Bits/Tokens (i.e., Shortcodes 2.0)](https://github.com/WordPress/gutenberg/discussions/39831)

### Stabilizing experimental components

WordPress has over [two dozen experimental Editor components](https://github.com/WordPress/gutenberg/issues/59418)
that are on their way to being stabilized. For many of these components, this is
long overdue as it has held some developers back from building with the Core tools.
Most of these should be ready to use by the time WordPress 6.6 is released.

### New and updated components

In other component news, the last couple of Gutenberg releases included some changes
you should keep an eye on:

 * A new `TextAlignmentControl` [component shipped with Gutenberg 18.3](https://github.com/WordPress/gutenberg/pull/60841)
   in preparation for block-level text alignment support in global styles.
 * Gutenberg 18.2 added `disabled` [prop support for item types](https://github.com/WordPress/gutenberg/pull/60896)
   in the `CustomSelectControlV2` component.

### Editor unification updates

Work continues on the [project to unify the publishing functionality](https://github.com/WordPress/gutenberg/issues/59878)
between the Post and Site Editor. The following slots are now available across editors:

 * [`PluginSidebar`](https://github.com/WordPress/gutenberg/pull/60815#top)
 * [`PluginPostStatusInfo`](https://github.com/WordPress/gutenberg/pull/60814#top)
 * [`PluginMoreMenuItem`](https://github.com/WordPress/gutenberg/pull/60778)
 * [`PluginSidebarMoreMenuItem`](https://github.com/WordPress/gutenberg/pull/60853)
 * [`PluginDocumentSettingsPanel`](https://github.com/WordPress/gutenberg/pull/60961)

### Interactivity API updates

The Interactivity API, which became public in WordPress 6.5, continues to see improvements.
Here are a few changes you should be aware of that shipped in Gutenberg 18.2:

 * You can now [declare multiple event listeners](https://github.com/WordPress/gutenberg/pull/60661)
   with `data-wp-on` for the same event type on the same element (this was backported
   to WordPress 6.5.3).
 * When `SCRIPT_DEBUG` is enabled, the `preact/debug` [package will be included](https://github.com/WordPress/gutenberg/pull/60514),
   allowing you to use [Preact Devtools](https://preactjs.github.io/preact-devtools/)
   to debug your interactive blocks.
 * The Query block has been updated to [permit third-party interactive blocks](https://github.com/WordPress/gutenberg/pull/60006).

### Other noteworthy changes

Gutenberg 18.3 includes a couple of other updates you should pay attention to:

 * The bundled React version has been [updated to 18.3.1](https://github.com/WordPress/gutenberg/pull/61202).
   This is in preparation for the upcoming [React 19 release](https://react.dev/blog/2024/04/25/react-19-upgrade-guide).
 * Gutenberg will [trigger a console warning](https://github.com/WordPress/gutenberg/pull/61037)
   when you register a block variation without a name.

## Themes

### Default font sizes setting triggers theme.json upgrade to version 3

Gutenberg 18.3 introduced a new `settings.typography.defaultFontSizes` property 
that will let you [disable the default font sizes](https://github.com/WordPress/gutenberg/pull/58409)
from being selectable in the user interface. This fixes a longstanding problem where
the Core sizes were shown alongside theme-registered sizes.

This change also bumped the `theme.json` schema to [version 3](https://developer.wordpress.org/block-editor/reference-guides/theme-json-reference/theme-json-living/).
Be prepared to update your themes when WordPress 6.6 rolls around to continue using
the newer `theme.json` features.

### Layout updates

Several updates to layout and related styles have found their way into Gutenberg
18.2 and 18.3. Any CSS changes to Core code have the potential to break your theme
designs, so be sure to check your designs against these and report any issues before
WordPress 6.6 ships:

 * [Layout style selectors](https://github.com/WordPress/gutenberg/pull/60228) are
   now wrapped in `:where()`, reducing their specificity.
 * For themes without a `theme.json` file, the [flow and constrained layout rules](https://github.com/WordPress/gutenberg/pull/60764#top)
   are no longer output.
 * [The auto-margin rule](https://github.com/WordPress/gutenberg/pull/60802) that
   centers blocks like Gallery and Quote in classic themes has been restored.
 * Negative margins are now [applied to full-width nested blocks](https://github.com/WordPress/gutenberg/pull/60716)
   when placed inside a container with custom padding.
 * [Semantic layout classes](https://github.com/WordPress/gutenberg/pull/60668) 
   are now always correctly added in the editor.

Aside from these under-the-hood changes, a new Row control has been [added to blocks with grid layout](https://github.com/WordPress/gutenberg/pull/60652)
when in manual mode.

### Text alignment block support

Gutenberg 18.2 introduced a new `typography.textAlign` [support property](https://github.com/WordPress/gutenberg/pull/59531)
for block developers. The eventual goal is to migrate this feature to Core blocks
that are using ad-hoc text alignment and [support it via global styles](https://github.com/WordPress/gutenberg/issues/48202).

### Post classes in the editor

As of Gutenberg 18.3, you should now be able to [use the standard post classes](https://github.com/WordPress/gutenberg/pull/60642)(
as returned by the `get_post_class()` function) in the editor. This is only shown
when using the Query Loop block. But it brings a long-used classic feature into 
the editor and should make it easier to consistently style posts using contextual
classes. 

_Is it time for post format styles to make a proper comeback?_

### Block fixes

Gutenberg 18.2 fixed issues across several blocks that should alleviate some theme
design headaches:

 * The wrapper `<div>` was [removed from the Latest Posts block](https://github.com/WordPress/gutenberg/pull/60728)
   in the editor, making it easier to consistently style it. It also adds some missing
   classes to the front end.
 * The Navigation block now shows the `.current-menu-item` [class for post type archives](https://github.com/WordPress/gutenberg/pull/57808).
 * [Paragraph support was re-added](https://github.com/WordPress/gutenberg/pull/60548)
   to the Post Title block’s `level` attribute at the block markup level, but there
   is no UI support for it.
 * The CSS specificity of the [Pullquote block’s padding](https://github.com/WordPress/gutenberg/pull/60649)
   and [Separator block’s border styles](https://github.com/WordPress/gutenberg/pull/60740)
   was reduced to avoid conflicting with global styles.

### Background image updates

Gutenberg 18.1 added the initial `theme.json` support and a UI control for a top-
level site background image. As part of some [follow-up tasks](https://github.com/WordPress/gutenberg/issues/54336)
to round out the feature, Gutenberg 18.2 included a couple of UI updates:

 * The [default background size value](https://github.com/WordPress/gutenberg/pull/60490)
   as defined in `theme.json` now shows in the controls in the **Styles** interface.
 * Some of the [text labels were updated](https://github.com/WordPress/gutenberg/pull/60264)
   to avoid potential confusion between the background image and color.

### Full-page, client-side navigation experiment

An experimental setting for [full-page, client-side navigation](https://github.com/WordPress/gutenberg/pull/59707)
was added to Gutenberg 18.3 as part of the [Interactivity API iteration for WordPress 6.6](https://github.com/WordPress/gutenberg/issues/60219).
You can test it by visiting **Gutenberg > Experiments** in your WordPress admin 
and turning it on.

Keep in mind that this is an early experiment and will likely break pieces of your
theme design. Please report any issues that you run into. You can follow the progress
of this feature on [this tracking issue](https://github.com/WordPress/gutenberg/issues/60951).

### Negative margin support

While negative margins have long been supported via `theme.json` and custom spacing
presets, Gutenberg 18.3 made them available [through the UI controls](https://github.com/WordPress/gutenberg/pull/60347)
in the editor. Now is a good time to begin testing this feature for issues with 
your designs because WordPress 6.6 will open it up to your theme users.

### Default theme updates

If you generally use the default themes as starting points for your own projects,
be sure to check out these changes in case they are relevant to your themes:

 * **Twenty Fourteen:** [Fixed a font size issue](https://core.trac.wordpress.org/changeset/57989)
   with the Pullquote block.
 * **Twenty Twenty-One:** Added a `wp_is_error()` [check to prevent a fatal error](https://core.trac.wordpress.org/changeset/57991)
   on PHP 8.0+.
 * **Twenty Twenty-Two:** The header was updated to better [support the Block Hooks API](https://core.trac.wordpress.org/changeset/58004).

### Other notable changes

A few other changes, which are mostly related to UI, have landed in the last couple
of Gutenberg releases:

 * The control for renaming blocks has been [removed from the **Advanced** inspector panel](https://github.com/WordPress/gutenberg/pull/60453).
   The goal is to remove duplicate controls (it’s also available through the block
   toolbar and List View).
 * The [hardcoded styles for the Group block](https://github.com/WordPress/gutenberg/pull/61027)
   example preview have been removed, which should now let your custom Group styles
   work correctly.
 * Classic themes now show an [**Appearance > Patterns** menu item in the admin](https://github.com/WordPress/gutenberg/pull/61080).
   This change also removes the **Template Parts** item.
 * The Site Editor now supports [creating starter patterns](https://github.com/WordPress/gutenberg/pull/60745)
   from the UI.

## Resources

### WordPress News

On the main WordPress News blog, two developer-related posts were published that
you should catch up with if you missed them:

 * [How WordPress Is Creating a Faster Web](https://wordpress.org/news/2024/04/how-wordpress-is-creating-a-faster-web/)
 * [Episode 77: Let’s Talk About Data Liberation](https://wordpress.org/news/2024/04/episode-77-lets-talk-about-data-liberation/)

### Developer Hours

There were two new live sessions that covered major WordPress 6.5 features in April:
the Interactivity API and Block Bindings API. They are available via YouTube:

 * [Building custom blocks in WordPress with the Interactivity API](https://www.youtube.com/watch?v=ndW-Kz0iDdY)
 * [Creating dynamic content in WordPress with Block Bindings and Custom Fields](https://www.youtube.com/watch?v=iFGaV0PvaNw)

The next Developer Hours event will be Tuesday, May 14, 2024 and will cover meta
box alternatives. [Sign up](https://www.meetup.com/learn-wordpress-online-workshops/events/300590175/)
to see the event live!

### Developer Blog

Four new tutorials landed here on the Developer Blog in the last month. As always,
there are more on the way, but take some time to catch up if you haven’t read these
yet:

 * [A first look at the Interactivity API](https://developer.wordpress.org/news/2024/04/11/a-first-look-at-the-interactivity-api/)
 * [Creating an external project template for create-block](https://developer.wordpress.org/news/2024/04/16/creating-an-external-project-template-for-create-block/)
 * [How to use WordPress Playground for interactive demos](https://developer.wordpress.org/news/2024/04/25/how-to-use-wordpress-playground-for-interactive-demos/)
 * [Building a book review site with Block Bindings, part 1: Custom fields and block variations](https://developer.wordpress.org/news/2024/05/06/building-a-book-review-site-with-block-bindings-part-1-custom-fields-and-block-variations/)

_Props to [@ndiego](https://profiles.wordpress.org/ndiego/) and [@juanmaguitar](https://profiles.wordpress.org/juanmaguitar/)
for reviewing this post._

**Share the post: **

**Categories:** [Blocks](https://developer.wordpress.org/news/category/blocks/),
[Plugins](https://developer.wordpress.org/news/category/plugins/), [Themes](https://developer.wordpress.org/news/category/themes/)

**Tags:** [Monthly Roundups](https://developer.wordpress.org/news/tag/roundup/)

## 7 responses to “What’s new for developers? (May 2024)”

 1.  ![Mateus Machado Luna Avatar](https://secure.gravatar.com/avatar/da4333e9e520f56887af71e68da6b6bdffb445f8c722e657ff3abe782500c0a7?
     s=40&d=identicon&r=g)
 2.  Mateus Machado Luna
 3.  [May 10, 2024](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/#comment-5940)
 4.  “The Site Editor now supports creating starter patterns from the UI.”
 5.  Do you have more details about this? I couldn’t follow up well in the issue, but
     it made me feel that I could go edit a pattern and somehow define if that pattern
     should be a starter for some post type, which would be great, even for classic
     themes…
 6.  [Reply](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/?replytocom=5940#respond)
 7.  ![Emily Ruth Avatar](https://secure.gravatar.com/avatar/f36fdc7c795c8d36564e90f77f47301c2620412cc2ae6304c1f02deb39e1afe5?
     s=40&d=identicon&r=g)
 8.  Emily Ruth
 9.  [June 24, 2024](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/#comment-7027)
 10. How can I edit a block pattern and define it as a default starter template for
     specific post types, including for classic themes, in WordPress?
 11. [Reply](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/?replytocom=7027#respond)
 12.  a.  ![Waqas Naeem Avatar](https://secure.gravatar.com/avatar/7bcd6ac8352449ea1069c6f3cbc33081e98a608508979aa7df3641f11e7ec004?
          s=40&d=identicon&r=g)
      b.  Waqas Naeem
      c.  [October 7, 2024](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/#comment-12547)
      d.  To edit a block pattern and define it as a default starter template for specific
          post types in WordPress, including classic themes, follow these steps:
      e.  Create or Edit the Block Pattern:
      f.  Navigate to the WordPress admin dashboard.
           Go to Patterns under the Appearance
          menu or use the Block Patterns plugin if it’s not available by default. You 
          can create a new block pattern or edit an existing one by clicking on the relevant
          option. Make sure your pattern includes all the necessary blocks and arrangements
          you want to feature. Register the Block Pattern:
      g.  If you’re developing a theme or using a custom plugin, register your block pattern
          using the register_block_pattern() function in your functions.php file. This
          code will look something like this:
      h.  php
           Copy code function my_custom_block_patterns() { register_block_pattern(‘
          my-plugin/my-pattern’, array( ‘title’ => __( ‘My Custom Pattern’, ‘text-domain’),‘
          description’ => _x( ‘A custom block pattern for specific post types.’, ‘Block
          pattern description’, ‘text-domain’ ), ‘content’ => ‘‘ . __( ‘Hello World!’,‘
          text-domain’ ) . ‘‘, ) ); } add_action( ‘init’, ‘my_custom_block_patterns’ );
      i.  [Reply](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/?replytocom=12547#respond)
 13. ![Priya Prakash Avatar](https://secure.gravatar.com/avatar/9484d3ae69f645dc34cd6176f31f1cf820258be466e280c904763c09b964b3eb?
     s=40&d=identicon&r=g)
 14. Priya Prakash
 15. [October 5, 2024](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/#comment-12486)
 16. How do the recent improvements to the Interactivity API in WordPress 6.5 impact
     the development of interactive blocks, and what new debugging tools are now available
     for developers?
 17. [Reply](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/?replytocom=12486#respond)
 18. ![Anil Yadav Avatar](https://secure.gravatar.com/avatar/5604ecfd10375861302b5d1e2db29227c40be33be9d63247f50b5b09ee17621c?
     s=40&d=identicon&r=g)
 19. Anil Yadav
 20. [October 5, 2024](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/#comment-12487)
 21. With the introduction of the TextAlignmentControl in Gutenberg 18.3, how will 
     this enhance block-level text alignment support in global styles, and what steps
     should developers take to implement it in their themes?
 22. [Reply](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/?replytocom=12487#respond)
 23. ![Shan Avatar](https://secure.gravatar.com/avatar/9b4b8fffcb07e033ed9c090494dabb86004fd024464199706a0d723b2d775da8?
     s=40&d=identicon&r=g)
 24. Shan
 25. [October 7, 2024](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/#comment-12550)
 26. Can we have custom global styling for a block to define it once and use that across
     the website, I need it for the below reference site, using Kadence [removed link
     to site, @bph]
 27. Looking forward, thank you
      Shan
 28. [Reply](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/?replytocom=12550#respond)
 29. ![Williem Hulen Avatar](https://secure.gravatar.com/avatar/370149ef5b039b068c8f5dc67a8e4b04eb09310a0da11bf550d64b493c611c90?
     s=40&d=identicon&r=g)
 30. Williem Hulen
 31. [October 11, 2024](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/#comment-12702)
 32. How can I change a block pattern and set it as the default template for specific
     post types, including classic themes, in WordPress?
 33. [Reply](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/?replytocom=12702#respond)

### Leave a Reply 󠀁[Cancel reply](https://developer.wordpress.org/news/2024/05/whats-new-for-developers-may-2024/?output_format=md#respond)󠁿

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Website

 Save my name, email, and website in this browser for the next time I comment.

 Notify me of follow-up comments by email.

 Notify me of new posts by email.

Δ

## Have an idea for a new post?

### 󠀁[Learn how to contribute](https://developer.wordpress.org/news/how-to-contribute/)󠁿

Share your knowledge with fellow WordPress developers.

Search

### 󠀁[Review tips and guidelines](https://developer.wordpress.org/news/tips-and-guidelines-for-writers/)󠁿

Everything you need to know about writing for the Blog.

## Subscribe to the Blog

  Email Address

 Join 1,948 other subscribers

 * [About](https://wordpress.org/about/)
 * [News](https://wordpress.org/news/)
 * [Hosting](https://wordpress.org/hosting/)
 * [Privacy](https://wordpress.org/about/privacy/)

 * [Showcase](https://wordpress.org/showcase/)
 * [Themes](https://wordpress.org/themes/)
 * [Plugins](https://wordpress.org/plugins/)
 * [Patterns](https://wordpress.org/patterns/)

 * [Learn](https://learn.wordpress.org/)
 * [Documentation](https://wordpress.org/documentation/)
 * [Developers](https://developer.wordpress.org/)
 * [WordPress.tv ](https://wordpress.tv/)

 * [Get Involved](https://make.wordpress.org/)
 * [Events](https://events.wordpress.org/)
 * [Donate ](https://wordpressfoundation.org/donate/)
 * [Swag ](https://mercantile.wordpress.org/)

 * [WordPress.com ](https://wordpress.com/?ref=wporg-footer)
 * [Matt ](https://ma.tt/)
 * [bbPress ](https://bbpress.org/)
 * [BuddyPress ](https://buddypress.org/)

 The WordPress® trademark is the intellectual property of the WordPress Foundation.

 * [Visit our X (formerly Twitter) account](https://www.x.com/WordPress)
 * [Visit our Bluesky account](https://bsky.app/profile/wordpress.org)
 * [Visit our Mastodon account](https://mastodon.world/@WordPress)
 * [Visit our Threads account](https://www.threads.net/@wordpress)
 * [Visit our Facebook page](https://www.facebook.com/WordPress/)
 * [Visit our Instagram account](https://www.instagram.com/wordpress/)
 * [Visit our LinkedIn account](https://www.linkedin.com/company/wordpress)
 * [Visit our TikTok account](https://www.tiktok.com/@wordpress)
 * [Visit our YouTube channel](https://www.youtube.com/wordpress)
 * [Visit our Tumblr account](https://wordpress.tumblr.com/)