Hint on documentation of function get_product()
The hint actual says that return void, changed to WC_Product_Simple because $woocommerce->product_factory->get_product() returns WC_Product_Simple, this change is useful for IDEs autocomplete hints
This commit is contained in:
parent
9bcf44106c
commit
6acf17caf5
|
@ -25,7 +25,7 @@ add_filter( 'woocommerce_stock_amount', 'intval' ); // Stock amounts are integer
|
|||
* @access public
|
||||
* @param mixed $the_product Post object or post ID of the product.
|
||||
* @param array $args (default: array()) Contains all arguments to be used to get this product.
|
||||
* @return void
|
||||
* @return WC_Product_Simple
|
||||
*/
|
||||
function get_product( $the_product = false, $args = array() ) {
|
||||
global $woocommerce;
|
||||
|
|
Loading…
Reference in New Issue