|
@@ 1822-1824 (lines=3) @@
|
| 1819 |
|
die(); |
| 1820 |
|
} |
| 1821 |
|
|
| 1822 |
|
if ( ! empty( $_GET['exclude'] ) ) { |
| 1823 |
|
$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) ); |
| 1824 |
|
} |
| 1825 |
|
|
| 1826 |
|
$found_products = array(); |
| 1827 |
|
|
|
@@ 1882-1884 (lines=3) @@
|
| 1879 |
|
$term = (string) wc_clean( stripslashes( $_GET['term'] ) ); |
| 1880 |
|
$exclude = array(); |
| 1881 |
|
|
| 1882 |
|
if ( ! empty( $_GET['exclude'] ) ) { |
| 1883 |
|
$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) ); |
| 1884 |
|
} |
| 1885 |
|
|
| 1886 |
|
$args = array( |
| 1887 |
|
'post_type' => array( 'product', 'product_variation' ), |