WPSEO_Option::clean()
Retrieve the real old value (unmerged with defaults), clean and re-save the option.
Метод класса: WPSEO_Option{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WPSEO_Option = new WPSEO_Option(); $WPSEO_Option->clean( $current_version );
- $current_version(строка|null)
- Version from which to upgrade, if not set, version-specific upgrades will be disregarded.
По умолчанию: null
Код WPSEO_Option::clean() WPSEO Option::clean Yoast 24.9
public function clean( $current_version = null ) { $option_value = $this->get_original_option(); $this->import( $option_value, $current_version ); }