Filter: bricks/dynamic_data/render_content
Filters the content passed through Bricks’ dynamic data parser. Bricks attaches its own parser callback to this filter, so calling apply_filters( 'bricks/dynamic_data/render_content', ... ) resolves dynamic tags such as {post_title} into their output values.
Use add_filter() on this hook when you need to adjust content before or after Bricks resolves dynamic data. Use apply_filters() when you need to parse a custom string through the same dynamic data pipeline.
Parameters
Section titled “Parameters”$content(string): The content string containing dynamic tags.$post(WP_Post): The post context.$context(string): The context where the content is used (e.g.,text).
Example usage
Section titled “Example usage”$content = 'Hello {post_title}';$post_id = 123;$post = get_post( $post_id );
// Manually parse dynamic data in a string$parsed_content = apply_filters( 'bricks/dynamic_data/render_content', $content, $post, 'text' );
// Output: Hello My Post Titleecho $parsed_content;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.