get_all_registered_block_bindings_sources()
云策文档标注
概述
该函数用于检索所有已注册的块绑定源列表,返回一个 WP_Block_Bindings_Source 数组。它是 WordPress 6.5.0 版本中引入的核心功能。
关键要点
- 函数 get_all_registered_block_bindings_sources() 返回所有已注册的块绑定源
- 返回类型为 WP_Block_Bindings_Source[] 数组
- 内部通过 WP_Block_Bindings_Registry::get_instance()->get_all_registered() 实现
- 在 WordPress 6.5.0 版本中首次引入
原文内容