Skip to content

Instantly share code, notes, and snippets.

View cconversion's full-sized avatar
🏠
Busy

cconversion

🏠
Busy
  • Earth
View GitHub Profile
@cconversion
cconversion / gravity-forms-product-addons-custom-export-fields.php
Created April 28, 2019 18:26 — forked from lucasstark/gravity-forms-product-addons-custom-export-fields.php
Custom export fields for WooCommerce Gravity Forms Product Addons
add_filter( 'gform_export_fields', 'custom_add_wc_order_fields', 10, 1 );
add_filter( 'gform_export_field_value', 'custom_export_wc_order_fields', 10, 4 );
function custom_add_wc_order_fields( $form ) {
array_push( $form['fields'], array(
'id' => 'woocommerce_billing_address_1',
'label' => __( 'WooCommerce Billing Address 1', 'wc_gf_addons' )
) );
array_push( $form['fields'], array(