added cross and up sells IDs filters

This commit is contained in:
Nicola Mustone 2015-08-05 11:01:47 +02:00
parent 2954707118
commit 9140ca0f76
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_up_sells_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_cross_sells_ids', (array) maybe_unserialize( $this->crosssell_ids ) );
}
/**