get_block_bindings_source()
Retrieves a registered block bindings source.
Хуков нет.
Возвращает
WP_Block_Bindings_Source|null. The registered block bindings source, or null if it is not registered.
Использование
get_block_bindings_source( $source_name );
- $source_name(строка) (обязательный)
- The name of the source.
Список изменений
| С версии 6.5.0 | Введена. |
Код get_block_bindings_source() get block bindings source WP 6.8.3
function get_block_bindings_source( string $source_name ) {
return WP_Block_Bindings_Registry::get_instance()->get_registered( $source_name );
}