_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, _inject_theme_attribute_in_template_part_block, _remove_theme_attribute_from_template_part_block, get_default_block_template_types, get_the_block_template_html

Top Google Results

User discussions

wpseek mobile