Merge pull request #8722 from SiR-DanieL/cross-up-sells

Added cross and up sells IDs filters
This commit is contained in:
Mike Jolley 2015-08-05 13:48:46 +01:00
commit ccbe22164b
1 changed files with 2 additions and 2 deletions

View File

@ -1152,7 +1152,7 @@ class WC_Product {
* @return array
*/
public function get_upsells() {
return (array) maybe_unserialize( $this->upsell_ids );
return apply_filters( 'woocommerce_product_upsell_ids', (array) maybe_unserialize( $this->upsell_ids ) );
}
/**
@ -1161,7 +1161,7 @@ class WC_Product {
* @return array
*/
public function get_cross_sells() {
return (array) maybe_unserialize( $this->crosssell_ids );
return apply_filters( 'woocommerce_product_crosssell_ids', (array) maybe_unserialize( $this->crosssell_ids ) );
}
/**