{
  "name": "bricks/dynamic_data/render_content",
  "kind": "filter",
  "url": "https://academy.bricksbuilder.io/developer/hooks/filters/bricks-dynamic_data-render_content/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/dynamic_data/render_content",
  "description": {
    "en": "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.",
    "zh": "如果 bricks/element/render 筛选器内的条件不满足（即返回 false），Bricks 不会渲染当前元素，而是继续渲染下一个元素。"
  },
  "parameters": [
    {
      "name": "content",
      "type": "string",
      "type_zh": null,
      "description": {
        "en": "The content string containing dynamic tags.",
        "zh": "包含动态标签的内容字符串。"
      }
    },
    {
      "name": "post",
      "type": "WP_Post",
      "type_zh": null,
      "description": {
        "en": "The post context.",
        "zh": "文章上下文。"
      }
    },
    {
      "name": "context",
      "type": "string",
      "type_zh": null,
      "description": {
        "en": "The context where the content is used (e.g., text ).",
        "zh": "内容被使用的上下文（例如 text）。"
      }
    }
  ],
  "example_usage": "$content = 'Hello {post_title}';\n$post_id = 123;\n$post    = get_post( $post_id );\n\n\n// Manually parse dynamic data in a string\n$parsed_content = apply_filters( 'bricks/dynamic_data/render_content', $content, $post, 'text' );\n\n\n// Output: Hello My Post Title\necho $parsed_content;"
}