WPSEO_Sitemaps_Cache::register_clear_on_option_update()public staticYoast 3.2

Adds a hook that when given option is updated, the cache is cleared.

Метод класса: WPSEO_Sitemaps_Cache{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WPSEO_Sitemaps_Cache::register_clear_on_option_update( $option, $type );
$option(строка) (обязательный)
Option name.
$type(строка)
Sitemap type.
По умолчанию: ''

Список изменений

С версии 3.2 Введена.

Код WPSEO_Sitemaps_Cache::register_clear_on_option_update() Yoast 22.4

public static function register_clear_on_option_update( $option, $type = '' ) {

	self::$cache_clear[ $option ] = $type;
}