added cross and up sells IDs filters
This commit is contained in:
parent
2954707118
commit
9140ca0f76
|
@ -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 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue