WP_Theme::delete_pattern_cache()
Clears block pattern cache.
Method of the class: WP_Theme{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Theme = new WP_Theme(); $WP_Theme->delete_pattern_cache();
Changelog
Since 6.4.0 | Introduced. |
Since 6.6.0 | Uses transients to cache regardless of site environment. |
WP_Theme::delete_pattern_cache() WP Theme::delete pattern cache code WP 6.7.1
public function delete_pattern_cache() { delete_site_transient( 'wp_theme_files_patterns-' . $this->cache_hash ); }