Skip to content

Instantly share code, notes, and snippets.

View StefsterNYC's full-sized avatar

Stef StefsterNYC

  • Bucks County, PA
  • 12:52 (UTC -05:00)
View GitHub Profile
<?php
/**
* @snippet Adds a column for the new GTIN input field on Products so when you export the column shows
* @author Serafin Tech
* @compatible WooCommerce 9+
* @website https://serafintech.io
*/
// Add the GTIN/UPC/EAN/ISBN to the export column names
add_filter('woocommerce_product_export_column_names', 'add_custom_gtin_export_column');
<?php
/**
* @snippet Utilizes the Product Category Thumbnail to apply itself in place of the PDP's Main image on all products in that category.
* @author Serafin Tech
* @compatible WooCommerce 9+
* @website https://serafintech.io
*/