WP_Theme::set_pattern_cache( array $patterns )

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Sets block pattern cache.

Parameters

$patternsarrayrequired
Block patterns data to set in cache.

Source

private function set_pattern_cache( array $patterns ) {
	$pattern_data = array(
		'version'  => $this->get( 'Version' ),
		'patterns' => $patterns,
	);
	wp_cache_set( 'wp_theme_patterns_' . $this->stylesheet, $pattern_data );
}

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

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