Skip to content
Prev Previous commit
Add a note to WP_Block_Bindings_Registry::register() pointing to `r…
…egister_block_bindings_source()`
  • Loading branch information
michalczaplinski committed Feb 7, 2024
commit 94385a524085363cdd07b9870109123e2601a63c
5 changes: 5 additions & 0 deletions src/wp-includes/class-wp-block-bindings-registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ final class WP_Block_Bindings_Registry {
/**
* Registers a new block bindings source.
*
* This is a low-level method. For most use cases, it is recommended to use
* the `register_block_bindings_source()` function instead.
*
* @see register_block_bindings_source()
*
* Sources are used to override block's original attributes with a value
* coming from the source. Once a source is registered, it can be used by a
* block by setting its `metadata.bindings` attribute to a value that refers
Expand Down