WP_Theme_JSON::get_template_parts(): array

In this article

Returns the template part data of active theme.

Return

array

Source

	$post_template_selector = static::scope_selector( $options['scope'], $post_template_selector );
}
if ( ! empty( $options['root_selector'] ) ) {
	$root_selector = $options['root_selector'];
}
/*
 * Base layout styles are provided as part of `styles`, so only output separately if explicitly requested.
 * For backwards compatibility, the Columns block is explicitly included, to support a different default gap value.
 */
$base_styles_nodes = array(
	array(
		'path'     => array( 'styles' ),
		'selector' => $root_selector,
	),
	array(
		'path'     => array( 'styles', 'blocks', 'core/columns' ),

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.