WC_Product_External::set_manage_stock( bool $manage_stock )

External products cannot be stock managed.


Description Description


Parameters Parameters

$manage_stock

(Required) If manage stock.


Top ↑

Source Source

File: includes/class-wc-product-external.php

	public function set_manage_stock( $manage_stock ) {
		$this->set_prop( 'manage_stock', false );

		if ( true === $manage_stock ) {
			$this->error( 'product_external_invalid_manage_stock', __( 'External products cannot be stock managed.', 'woocommerce' ) );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.