Written by
Dennis
At
Sat Mar 14 2026
Blockstudio 7.1
String renderer, and more new features coming to the WordPress block framework.
Blockstudio 7.1 is the first feature release since the v7 rewrite. It introduces the string renderer and lays the groundwork for more features to come.
String renderer
The string renderer lets you embed Blockstudio blocks anywhere in WordPress
content using simple HTML-like tags. Write <bs:block-name> in a post, page,
widget, or any filtered content, and Blockstudio renders the full block output
in its place.
<bs:marketing-cta title="Get started" variant="primary" />This is useful when you want to drop a block into content that doesn't go through the block editor: classic editor posts, widget text areas, custom fields, or content generated by other plugins. Element attributes map directly to block attributes, so passing data works the same as it does in the editor.
Syntax
Self-closing tags for simple blocks:
<bs:hero title="Welcome" background="dark" />Paired tags when you need inner content:
<bs:section layout="wide">
<p>Content inside the block.</p>
</bs:section>Namespace prefix with double-dash for disambiguation:
<bs:acme--hero title="Branded" />Without a namespace, Blockstudio matches the first registered block with that
slug. With a namespace (acme--hero), it resolves to exactly acme/hero.
Activation
The string renderer is opt-in. Enable it in your blockstudio.json:
{
"stringRenderer": {
"enabled": true
}
}Or via the PHP filter:
add_filter('blockstudio/settings/string_renderer/enabled', '__return_true');Programmatic rendering
You can also apply the string renderer to any string from PHP:
$html = apply_filters('blockstudio/string_renderer/render', $content);This is useful for processing content from custom sources, REST API responses,
or anywhere you want <bs:> tags resolved into rendered blocks.