@@ -149,7 +149,7 @@ |
||
| 149 | 149 | * |
| 150 | 150 | * @param mixed $value (default: ''). |
| 151 | 151 | * @param WC_Product $product Product object. |
| 152 | - * @return mixed $value Should be in a format that can be output into a text file (string, numeric, etc). |
|
| 152 | + * @return string $value Should be in a format that can be output into a text file (string, numeric, etc). |
|
| 153 | 153 | */ |
| 154 | 154 | public function add_export_data_alt_products( $value, $product ) { |
| 155 | 155 | $value = $product->get_meta( '_alt_products', true, 'edit' ); |
@@ -207,7 +207,7 @@ |
||
| 207 | 207 | '_hide_from_shop', |
| 208 | 208 | '_hide_from_search', |
| 209 | 209 | ); |
| 210 | - $meta_keys = array_unique( array_merge( $meta_keys, $dp_meta_keys ) ); |
|
| 210 | + $meta_keys = array_unique( array_merge( $meta_keys, $dp_meta_keys ) ); |
|
| 211 | 211 | return $meta_keys; |
| 212 | 212 | } |
| 213 | 213 | } |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | * Discontinued_template_price_class - Add "discontinued" to the price class. |
| 160 | 160 | * |
| 161 | 161 | * @param int $class Product price css class. |
| 162 | - * @return null |
|
| 162 | + * @return string |
|
| 163 | 163 | */ |
| 164 | 164 | function discontinued_template_price_class( $class ) { |
| 165 | 165 | $class = $class . ' discontinued'; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * @param array $query_args Query args. |
| 23 | 23 | */ |
| 24 | 24 | protected function set_discontinued_products_query_args( &$query_args ) { |
| 25 | - $dp_discontinued_term = (int) get_option( 'dp_discontinued_term' ); |
|
| 25 | + $dp_discontinued_term = (int) get_option( 'dp_discontinued_term' ); |
|
| 26 | 26 | $query_args['tax_query'][] = array( |
| 27 | 27 | 'taxonomy' => 'product_discontinued', |
| 28 | 28 | 'field' => 'id', |
@@ -264,7 +264,7 @@ |
||
| 264 | 264 | 'operator' => 'IN', |
| 265 | 265 | ); |
| 266 | 266 | } |
| 267 | - if ( ( is_shop() || is_product_category() ) && $this->current_page_id !== $dc_shop_page_id && ! $q->is_search() ) { |
|
| 267 | + if ( ( is_shop() || is_product_category() ) && $this->current_page_id !== $dc_shop_page_id && ! $q->is_search() ) { |
|
| 268 | 268 | $tax_query[] = array( |
| 269 | 269 | 'relation' => 'OR', |
| 270 | 270 | array( |