Title: _register_block_bindings_post_meta_source
Published: April 3, 2024
Last modified: May 20, 2026

---

# _register_block_bindings_post_meta_source()

## In this article

 * [Source](https://developer.wordpress.org/reference/functions/_register_block_bindings_post_meta_source/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/_register_block_bindings_post_meta_source/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/_register_block_bindings_post_meta_source/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/_register_block_bindings_post_meta_source/?output_format=md#wp--skip-link--target)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Registers Post Meta source in the block bindings registry.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/_register_block_bindings_post_meta_source/?output_format=md#source)󠁿

    ```php
    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' ),
    		)
    	);
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/block-bindings/post-meta.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/block-bindings/post-meta.php#L59)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/block-bindings/post-meta.php#L59-L68)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/_register_block_bindings_post_meta_source/?output_format=md#related)󠁿

| Uses | Description | 
| [register_block_bindings_source()](https://developer.wordpress.org/reference/functions/register_block_bindings_source/)`wp-includes/block-bindings.php` |

Registers a new block bindings source.

  | 
| [_x()](https://developer.wordpress.org/reference/functions/_x/)`wp-includes/l10n.php` |

Retrieves translated string with gettext context.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/_register_block_bindings_post_meta_source/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.5.0](https://developer.wordpress.org/reference/since/6.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2F_register_block_bindings_post_meta_source%2F)
before being able to contribute a note or feedback.