_register_block_bindings_post_meta_source()
Registers Post Meta 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_post_meta_source();
Changelog
Since 6.5.0 | Introduced. |
_register_block_bindings_post_meta_source() register block bindings post meta source code WP 6.6.2
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' ), ) ); }