get_block_bindings_source

The timeline below displays how wordpress function get_block_bindings_source has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.5

/**
 * Retrieves a registered block bindings source.
 *
 * @since 6.5.0
 *
 * @param string $source_name The name of the source.
 * @return WP_Block_Bindings_Source|null The registered block bindings source, or `null` if it is not registered.
 */
function get_block_bindings_source(string $source_name)
{
    return WP_Block_Bindings_Registry::get_instance()->get_registered($source_name);
}