Checks if a block bindings source is registered.
$source_namestringrequired
true if the block bindings source is registered, false otherwise.public function is_registered( $source_name ) {
return isset( $this->sources[ $source_name ] );
}
| Version | Description |
|---|---|
| 6.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_block_bindings_registry/is_registered