Warning: This method has been deprecated.

WC_Abstract_Legacy_Product::has_default_attributes()

Check if variable product has default attributes set.


Description Description


Return Return

(bool)


Top ↑

Source Source

File: includes/legacy/abstract-wc-legacy-product.php

	public function has_default_attributes() {
		wc_deprecated_function( 'WC_Product_Variable::has_default_attributes', '3.0', 'a check against WC_Product::get_default_attributes directly' );
		if ( ! $this->get_default_attributes() ) {
			return true;
		}
		return false;
	}

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.