WPSEO_Option::clean()publicYoast 1.0

Retrieve the real old value (unmerged with defaults), clean and re-save the option.

{} Это метод класса: WPSEO_Option{}

Хуков нет.

Возвращает

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() Yoast 19.6.1

public function clean( $current_version = null ) {
	$option_value = $this->get_original_option();
	$this->import( $option_value, $current_version );
}