WPDev.one
Core Function
View Source on Trac ↗

register_block_bindings_source()

register_block_bindings_source( string $source_name, array $source_properties )

Registers a new block bindings source.

Parameters 2 required

Name / Type Description
string

$source_name The name of the source. It must be a string containing a namespace prefix, i.e. `my-plugin/my-custom-source`. It must only contain lowercase alphanumeric characters, the forward slash `/` and dashes.

Required
array

$source_properties { The array of arguments that are used to register a source.

Required

Return Value

((WP_Block_Bindings_Source)
| false) Source when the registration was successful, or `false` on failure.

Function Information

Since Version
6.5.0
Source File
wp-includes/block-bindings.php
Advertisement