WP_Theme_JSON::get_custom_templates(): array

In this article

Returns the page templates of the active theme.

Return

array

Source

	}
	if ( false !== $root_style_key ) {
		$style_nodes[ $root_style_key ]['selector'] = $options['root_selector'];
	}
}

$stylesheet = '';

if ( in_array( 'variables', $types, true ) ) {
	$stylesheet .= $this->get_css_variables( $setting_nodes, $origins );
}

if ( in_array( 'styles', $types, true ) ) {
	if ( false !== $root_style_key ) {
		$stylesheet .= $this->get_root_layout_rules( $style_nodes[ $root_style_key ]['selector'], $style_nodes[ $root_style_key ] );
	}

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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