|
@@ 1880-1882 (lines=3) @@
|
| 1877 |
|
die(); |
| 1878 |
|
} |
| 1879 |
|
|
| 1880 |
|
if ( ! empty( $_GET['exclude'] ) ) { |
| 1881 |
|
$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) ); |
| 1882 |
|
} |
| 1883 |
|
|
| 1884 |
|
$found_products = array(); |
| 1885 |
|
|
|
@@ 1940-1942 (lines=3) @@
|
| 1937 |
|
$term = (string) wc_clean( stripslashes( $_GET['term'] ) ); |
| 1938 |
|
$exclude = array(); |
| 1939 |
|
|
| 1940 |
|
if ( ! empty( $_GET['exclude'] ) ) { |
| 1941 |
|
$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) ); |
| 1942 |
|
} |
| 1943 |
|
|
| 1944 |
|
$args = array( |
| 1945 |
|
'post_type' => array( 'product', 'product_variation' ), |