Product::has_options()

Summary

Check if a product has options.


Return

(bool)


Source

File: src/BigCommerce/Post_Types/Product/Product.php

	public function has_options() {
		$options   = $this->options();
		$modifiers = $this->modifiers();
		if ( count( $options ) > 0 || count( $modifiers ) > 0 ) {
			return true;
		}

		return false;
	}


User Contributed Notes

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