# Exclude products by IDs in Advanced Woo Search

**URL:** <https://community.mainwp.com/t/exclude-products-by-ids-in-advanced-woo-search/10169>\
**Category:** Code Snippets\
**Tags:** wordpress, woocommerce\
**Created:** [April 24, 2025, 5:06pm UTC](https://community.mainwp.com/t/exclude-products-by-ids-in-advanced-woo-search/10169 "2025-04-24T17:06:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian-moran](https://community.mainwp.com/user_avatar/community.mainwp.com/sebastian-moran/32/16_2.png) [@sebastian-moran](https://community.mainwp.com/u/sebastian-moran)\
**Post date:** [April 24, 2025, 5:06pm UTC](https://community.mainwp.com/t/exclude-products-by-ids-in-advanced-woo-search/10169/1 "2025-04-24T17:06:19Z")

</div>

Exclude products by IDs in Advanced Woo Search.

**Snippet Type**

`Execute on Child Sites`

**Snippet**

```auto
https://github.com/mainwp/Code-Snippets-Functions/blob/master/Execute%20a%20function%20on%20a%20child%20site/Advanced%20Woo%20Search/exclude-products-by-id.txt

```

---

<div class="post-metadata">

**Author:** ![system](https://community.mainwp.com/uploads/default/original/2X/4/4cfc87ac67e4ebdbfa0bbf0b19c8657f35a29a5b.png) [@system](https://community.mainwp.com/u/system)\
**Post date:** [May 24, 2025, 5:06pm UTC](https://community.mainwp.com/t/exclude-products-by-ids-in-advanced-woo-search/10169/2 "2025-05-24T17:06:56Z")

</div>

Closed on May 24, 2025, 5:06pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
