wpseek.com
A WordPress-centric search engine for devs and theme authors



_register_block_bindings_post_meta_source › WordPress Function

Since6.5.0
Deprecatedn/a
_register_block_bindings_post_meta_source ( No parameters )
Access:
  • private
Defined at:
Codex:

Registers Post Meta source in the block bindings registry.



Source

function _register_block_bindings_post_meta_source() {
	register_block_bindings_source(
		'core/post-meta',
		array(
			'label'              => _x( 'Post Meta', 'block bindings source' ),
			'get_value_callback' => '_block_bindings_post_meta_get_value',
			'uses_context'       => array( 'postId', 'postType' ),
		)
	);
}