|
@@ 1852-1854 (lines=3) @@
|
| 1849 |
|
die(); |
| 1850 |
|
} |
| 1851 |
|
|
| 1852 |
|
if ( ! empty( $_GET['exclude'] ) ) { |
| 1853 |
|
$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) ); |
| 1854 |
|
} |
| 1855 |
|
|
| 1856 |
|
$found_products = array(); |
| 1857 |
|
|
|
@@ 1912-1914 (lines=3) @@
|
| 1909 |
|
$term = (string) wc_clean( stripslashes( $_GET['term'] ) ); |
| 1910 |
|
$exclude = array(); |
| 1911 |
|
|
| 1912 |
|
if ( ! empty( $_GET['exclude'] ) ) { |
| 1913 |
|
$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) ); |
| 1914 |
|
} |
| 1915 |
|
|
| 1916 |
|
$args = array( |
| 1917 |
|
'post_type' => array( 'product', 'product_variation' ), |