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:
jprieton 2013-06-28 11:43:36 -04:30
parent 9bcf44106c
commit 6acf17caf5
1 changed files with 1 additions and 1 deletions

View File

@ -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;