From 22ba83e8ef696b72b968dd734c3ff069559c85f1 Mon Sep 17 00:00:00 2001 From: nickrouty Date: Thu, 2 Feb 2017 21:08:22 -0700 Subject: [PATCH] Adding apply_filters to pos_product_thumbnail --- includes/api/products.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/products.php b/includes/api/products.php index bddd85c1..6af1df06 100644 --- a/includes/api/products.php +++ b/includes/api/products.php @@ -259,7 +259,7 @@ private function filter_response_data( array $data, $product ){ $id = isset( $data['id'] ) ? $data['id'] : ''; $barcode = get_post_meta( $id, $this->barcode_meta_key, true ); - $data['featured_src'] = $this->get_thumbnail( $id ); + $data['featured_src'] = apply_filters( 'woocommerce_pos_product_thumbnail', $this->get_thumbnail( $id ), $id ); $data['barcode'] = apply_filters( 'woocommerce_pos_product_barcode', $barcode, $id ); // allow decimal stock quantities, fixed in WC 2.4 @@ -538,4 +538,4 @@ private function format_id( $id ){ return array( 'id' => (int) $id ); } -} \ No newline at end of file +}