WP_Theme::delete_pattern_cache()
Clears block pattern cache.
Метод класса: WP_Theme{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Theme = new WP_Theme(); $WP_Theme->delete_pattern_cache();
Список изменений
С версии 6.4.0 | Введена. |
С версии 6.6.0 | Uses transients to cache regardless of site environment. |
Код WP_Theme::delete_pattern_cache() WP Theme::delete pattern cache WP 6.6.2
public function delete_pattern_cache() { delete_site_transient( 'wp_theme_files_patterns-' . $this->cache_hash ); }