This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |