get_product()
Deprecated from version 3.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
No Hooks.
Return
null
. Nothing (null).
Usage
get_product( $the_product, $args );
- $the_product **
- -
Default: false - $args **
- -
Default: array()
Changelog
Deprecated since | 3.0 |
get_product() get product code WC 9.6.1
function get_product( $the_product = false, $args = array() ) { wc_deprecated_function( __FUNCTION__, '3.0', 'wc_get_product' ); return wc_get_product( $the_product, $args ); }