Make WordPress Core


Ignore:
Timestamp:
02/01/2024 12:52:54 PM (8 months ago)
Author:
youknowriad
Message:

Editor: Add the Block Bindings API.

This introduces the Block Bindings API for WordPress.

The API allows developers to connects block attributes to different sources. In this PR, two such sources are included: "post meta" and "pattern". Attributes connected to sources can have their HTML replaced by values coming from the source in a way defined by the binding.

Props czapla, lgladdy, gziolo, sc0ttkclark, swissspidy, artemiosans, kevin940726, fabiankaegy, santosguillamot, talldanwp, wildworks.
Fixes #60282.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r57503 r57514  
    377377require ABSPATH . WPINC . '/class-wp-script-modules.php';
    378378require ABSPATH . WPINC . '/script-modules.php';
     379require ABSPATH . WPINC . '/block-bindings/sources/post-meta.php';
     380require ABSPATH . WPINC . '/block-bindings/sources/pattern.php';
    379381require ABSPATH . WPINC . '/interactivity-api.php';
    380382
Note: See TracChangeset for help on using the changeset viewer.