WordPress at Your Fingertips
function is not described

WC_Product_Variable::validate_props() public WC 3.0.0

Ensure properties are set correctly before save.

{} It's a method of the class: WC_Product_Variable{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of WC_Product_Variable::validate_props() WC 5.8.0

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

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