_inject_theme_attribute_in_block_template_content


_inject_theme_attribute_in_block_template_content ( $template_content )

Access:
  • private
Parameters:
  • (string) template_content serialized wp_template content.
Returns:
  • (string) Updated 'wp_template' content.
Defined at:

Description

Parses wp_template content and injects the active theme's stylesheet as a theme attribute into each wp_template_part

Related Functions

_remove_theme_attribute_in_block_template_content, get_default_block_template_types, get_the_block_template_html, get_theme_starter_content, _register_theme_block_patterns

Top Google Results

User discussions

wpseek mobile