wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_register_block_bindings_post_data_source › WordPress Function

Depuis6.9.0
Dépréciéen/a
› _register_block_bindings_post_data_source ( Pas de paramètres )
Accès:
  • private
Défini(e) dans:
Codex:

Registers Post Data source in the block bindings registry.



Source

function _register_block_bindings_post_data_source() {
	register_block_bindings_source(
		'core/post-data',
		array(
			'label'              => _x( 'Post Data', 'block bindings source' ),
			'get_value_callback' => '_block_bindings_post_data_get_value',
			'uses_context'       => array( 'postId', 'postType' ), // Both are needed on the client side.
		)
	);
}