WPSEO_Option::clean()publicYoast 1.0

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

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