| 开发者 | yujesh |
|---|---|
| 更新时间 | 2026年11月1日 12:43 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
post_content, which keeps your database clean.
Who Is MetricPage Builder For?
Developers and agencies: Keep full control over markup, CSS and the design system on every client site. You define the components and the builder becomes a structured, lightweight editing screen.
Clients and content editors: A simple editing experience with no margin, padding or styling controls to learn. Fill in the fields, click Publish and the page matches the approved design.
Performance-focused site owners: If you care about Core Web Vitals, page speed scores and a lean database, MetricPage Builder keeps your front end light.
metricpage-builder folder to the /wp-content/plugins/ directory, or install it from Plugins → Add New Plugin by searching for "MetricPage Builder".Yes. Go to Metric → Header & Footer, add a header or footer and build it in the same builder as your pages. You can create as many as you like and choose where each appears with display conditions: entire site, front page, blog page, search, 404, author/date archives, all singular content, a post type (all or specific items), all archives, a post type archive, or a taxonomy (all or specific terms). Exclude rules win; otherwise the most specific match wins, and ties go to the most recently updated part. Pages with no match keep your theme's default.
Your theme needs to print the part where it outputs its header or footer:
<?php if ( ! function_exists( 'metric_builder_part' ) || ! metric_builder_part( 'header' ) ) { get_template_part( 'header-default' ); } ?>
Themes can declare add_theme_support( 'metric-site-parts' ); and seed their own header/footer components with the metric_site_part_seed filter.
Yes, MetricPage Builder acts as a complete alternative to the default editor on the pages you choose to edit with it.
The raw schema data is stored efficiently in post meta. The compiled SSR output is held in a regenerable cache (object cache, transient, or a file under uploads/metricpage-builder/) and injected into the page through a the_content filter, so your site remains unbelievably fast.
Note: the compiled HTML is not written back into the post_content column. Plugins that analyse the raw column directly (for example some SEO content analysers) will not see the rendered body.
$f), with schema defaults filled in automatically. Function-style components keep working.metric_template_fields() and metric_render_template()..metric-single and centered .metric-single-image with clean responsive max-width containment.PostBlocks.php when image shape or content width attributes are omitted.metric_register_dynamic_block() registers blocks rendered on every request; select fields accept enumLabels.metric_front_allowed_html filter.metric_supported_post_types).<style> blocks shipped by theme-kit components were being stripped down to their bare CSS text and printed visibly on the page; also fixes any --custom-property inside them being corrupted into – characters.