wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



_register_block_bindings_term_data_source › WordPress Function

Seit6.9.0
Veraltetn/v
_register_block_bindings_term_data_source ( Keine Parameter )
Zugriff:
  • private
Definiert in:
Codex:

Registers Term Data source in the block bindings registry.



Quellcode

function _register_block_bindings_term_data_source() {
	if ( get_block_bindings_source( 'core/term-data' ) ) {
		// The source is already registered.
		return;
	}

	register_block_bindings_source(
		'core/term-data',
		array(
			'label'              => _x( 'Term Data', 'block bindings source' ),
			'get_value_callback' => '_block_bindings_term_data_get_value',
			'uses_context'       => array( 'termId', 'taxonomy' ),
		)
	);
}