Skip to content

Filters for developers

OBS Google Shopping XML filters for excluding products, prices, additional tags such as g:gtin and custom_label, description and identifiers.

Updated 4 Nov 2026 1 min read Step 13 of 14
WooCommerce 6.0+ · PHP 7.4 – 8.3 Buy Support

The filters enter a child theme or your own small plugin, so that they don't get lost with updates. The Tab Advanced shows at the end ready examples.

Especially for Google feed#

  • obs_google_shopping_xml_skip_product ($skip, $product): return true to exclude a product, e.g. when it has no picture.
  • obs_google_shopping_xml_append_xml ($tags, $product, $parent): adds tags for each product. Each array element has name, value and optionally cdata_wrapper. So added g:gtin, g:custom_label_0 et al.
  • obs_google_shopping_xml_custom_product_identifierPrice of g:identifier_exists (default) no).
  • obs_google_shopping_xml_custom_product_conditionPrice of g:condition (default) New).
  • obs_google_shopping_xml_custom_group_idPrice of g:item_group_id.

Common filters of the machine#

  • obs_google_shopping_xml_custom_price, _custom_regular_price, _custom_sale_price(iii) price change.
  • obs_google_shopping_xml_custom_description: description cleaning, e.g. shortcodes removal.
  • obs_google_shopping_xml_custom_name, _custom_id, _custom_link, _custom_image, _custom_gallery, _custom_brand, _custom_color, _custom_size, _custom_mpn, _custom_ean.
  • obs_woo_export_enable_product_metabox: return false to hide the frame Product Visibility from products.

After changing to filter run Test export and then full Generate feed now. If you do not have a developer, OBS implements such adjustments upon request.

Did this article help you?
It's not solved?

Send a request; the plugin and the article are automatically completed.

Request support