Soft deprecated get_product function

This commit is contained in:
Barry Kooij 2014-08-19 12:19:26 +02:00
parent 94365791af
commit fde10a967b
1 changed files with 9 additions and 0 deletions

View File

@ -100,6 +100,15 @@ function woocommerce_legacy_paypal_ipn() {
}
add_action( 'init', 'woocommerce_legacy_paypal_ipn' );
/**
* get_product soft deprecated for wc_get_product
*
* @deprecated
*/
function get_product( $the_product = false, $args = array() ) {
return wc_get_product( $the_product, $args );
}
/**
* Cart functions (soft deprecated)
*/