WPDev.one
Core Function
View Source on Trac ↗

_inject_theme_attribute_in_template_part_block()

_inject_theme_attribute_in_template_part_block( mixed $block )

Injects the active theme's stylesheet as a `theme` attribute

Parameters 1 required

Name / Type Description
$block
array

a parsed block.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
6.4.0
Source File
wp-includes/block-template-utils.php
Advertisement