WPSEO_Sitemaps_Cache::register_clear_on_option_update()
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() WPSEO Sitemaps Cache::register clear on option update Yoast 24.9
public static function register_clear_on_option_update( $option, $type = '' ) { self::$cache_clear[ $option ] = $type; }