Skip to content

Instantly share code, notes, and snippets.

View christattum's full-sized avatar

Chris Tattum christattum

View GitHub Profile
@christattum
christattum / gist:c6abfcec4e4feec11dede9f353e1e14b
Created September 26, 2018 16:05 — forked from corsonr/gist:3d0425deaa80c601d454
WooCommerce: custom variations settings
<?php
// Add Variation Settings
add_action( 'woocommerce_product_after_variable_attributes', 'variation_settings_fields', 10, 3 );
// Save Variation Settings
add_action( 'woocommerce_save_product_variation', 'save_variation_settings_fields', 10, 2 );
/**
* Create new fields for variations
@christattum
christattum / 1-remove-woocommerce-tabs.php
Created August 18, 2017 10:38 — forked from kittenlane/1-remove-woocommerce-tabs.php
Remove tabs but keep product description in WooCommerce
//* http://gasolicious.com/remove-tabs-keep-product-description-woocommerce/
// Location: add to functions.php
// Output: removes woocommerce tabs
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );