wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_block_bindings_source › WordPress Function

Since6.5.0
已弃用n/a
get_block_bindings_source ( $source_name )
参数:
  • (string) $source_name The name of the source.
    Required: Yes
返回:
  • (WP_Block_Bindings_Source|null) The registered block bindings source, or `null` if it is not registered.
定义在:
文档:

Retrieves a registered block bindings source.



源码

function get_block_bindings_source( string $source_name ) {
	return WP_Block_Bindings_Registry::get_instance()->get_registered( $source_name );
}