📄 原始资料 | 展开查看原始 JSON(bricks_meta_tags.json){ “name”: “bricks_meta_tags”, “kind”: “action”, “url”: “https://academy.bricksbuilder.io/developer/hooks/actions/bricks-meta_tags/”, “scraped_at”: “2026-08-29”, “hook_name”: “bricks_meta_tags”, “description”: { “en”: “Runs in the document head b…
📄 原始资料 | 展开查看原始 JSON(bricks_meta_tags.json)
{
"name": "bricks_meta_tags",
"kind": "action",
"url": "https://academy.bricksbuilder.io/developer/hooks/actions/bricks-meta_tags/",
"scraped_at": "2026-08-29",
"hook_name": "bricks_meta_tags",
"description": {
"en": "Runs in the document head before wp_head() . Use it to output meta tags that should be controlled through the Bricks header template flow.",
"zh": "在文档 head 中、wp_head() 之前触发。用于输出应该由 Bricks 页头模板流程统一管理的 meta 标签。"
},
"example_usage": "add_action( 'bricks_meta_tags', function() {\n echo '<meta name=\"theme-color\" content=\"#111111\">';\n} );"
}
前言
在文档 head 中、wp_head() 之前触发。用于输出应该由 Bricks 页头模板流程统一管理的 meta 标签。
用法
将代码加入子主题的 functions.php:
add_action( 'bricks_meta_tags', function() {
echo '';
} );
示例代码
官方示例用法
add_action( 'bricks_meta_tags', function() {
echo '';
} );
补充说明
更多细节可参考 官方文档。