WC_Product_Variable::validate_props()publicWC 3.0.0

Ensure properties are set correctly before save.

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

Хуков нет.

Возвращает

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

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

$WC_Product_Variable = new WC_Product_Variable();
$WC_Product_Variable->validate_props();

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

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

Код WC_Product_Variable::validate_props() WC 8.7.0

public function validate_props() {
	parent::validate_props();

	if ( ! $this->get_manage_stock() ) {
		$this->data_store->sync_stock_status( $this );
	}
}