wp_maybe_clean_new_site_cache_on_update()
Cleans the necessary caches after specific site data has been updated.
Хуков нет.
Возвращает
null
. Ничего.
Использование
wp_maybe_clean_new_site_cache_on_update( $new_site, $old_site );
- $new_site(WP_Site) (обязательный)
- The site object after the update.
- $old_site(WP_Site) (обязательный)
- The site object prior to the update.
Список изменений
С версии 5.1.0 | Введена. |
Код wp_maybe_clean_new_site_cache_on_update() wp maybe clean new site cache on update WP 6.2
function wp_maybe_clean_new_site_cache_on_update( $new_site, $old_site ) { if ( $old_site->domain !== $new_site->domain || $old_site->path !== $new_site->path ) { clean_blog_cache( $new_site ); } }