Filter: bricks/dynamic_data/meta_value/{meta_key}
Filters the value of a specific post meta key when retrieved via dynamic data (e.g., {cf_my_key}). The {$meta_key} portion of the hook name should be replaced with your actual meta key.
Parameters
Section titled “Parameters”$value(mixed): The value of the custom field.$post(WP_Post): The post object.
Example usage
Section titled “Example usage”// Filter the value of the custom field with key 'my_price_field'add_filter( 'bricks/dynamic_data/meta_value/my_price_field', function( $value, $post ) { // Example: Format the price return '$' . number_format( (float) $value, 2 );}, 10, 2 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.