WC_Product_Variable::validate_props
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 Product Variable::validate props WC 10.9.4
public function validate_props() {
parent::validate_props();
if ( ! $this->get_manage_stock() ) {
$this->data_store->sync_stock_status( $this );
}
}