_register_block_bindings_pattern_overrides_source()WP 6.5.0

Registers Pattern Overrides source in the Block Bindings registry.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

null. Nothing (null).

Usage

_register_block_bindings_pattern_overrides_source();

Changelog

Since 6.5.0 Introduced.

_register_block_bindings_pattern_overrides_source() code WP 6.6.2

function _register_block_bindings_pattern_overrides_source() {
	register_block_bindings_source(
		'core/pattern-overrides',
		array(
			'label'              => _x( 'Pattern Overrides', 'block bindings source' ),
			'get_value_callback' => '_block_bindings_pattern_overrides_get_value',
			'uses_context'       => array( 'pattern/overrides' ),
		)
	);
}