|
@@ 1839-1841 (lines=3) @@
|
| 1836 |
|
die(); |
| 1837 |
|
} |
| 1838 |
|
|
| 1839 |
|
if ( ! empty( $_GET['exclude'] ) ) { |
| 1840 |
|
$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) ); |
| 1841 |
|
} |
| 1842 |
|
|
| 1843 |
|
$found_products = array(); |
| 1844 |
|
|
|
@@ 1899-1901 (lines=3) @@
|
| 1896 |
|
$term = (string) wc_clean( stripslashes( $_GET['term'] ) ); |
| 1897 |
|
$exclude = array(); |
| 1898 |
|
|
| 1899 |
|
if ( ! empty( $_GET['exclude'] ) ) { |
| 1900 |
|
$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) ); |
| 1901 |
|
} |
| 1902 |
|
|
| 1903 |
|
$args = array( |
| 1904 |
|
'post_type' => array( 'product', 'product_variation' ), |