@@ 1857-1859 (lines=3) @@ | ||
1854 | die(); |
|
1855 | } |
|
1856 | ||
1857 | if ( ! empty( $_GET['exclude'] ) ) { |
|
1858 | $exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) ); |
|
1859 | } |
|
1860 | ||
1861 | $found_products = array(); |
|
1862 | ||
@@ 1917-1919 (lines=3) @@ | ||
1914 | $term = (string) wc_clean( stripslashes( $_GET['term'] ) ); |
|
1915 | $exclude = array(); |
|
1916 | ||
1917 | if ( ! empty( $_GET['exclude'] ) ) { |
|
1918 | $exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) ); |
|
1919 | } |
|
1920 | ||
1921 | $args = array( |
|
1922 | 'post_type' => array( 'product', 'product_variation' ), |