Created
June 6, 2019 06:53
-
-
Save aliciaiceland/df4ebffdf4ab309de88d9f5be0f229ad to your computer and use it in GitHub Desktop.
Add field to product enquiry form
This file contains hidden or 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 field to your product enquiry form | |
| */ | |
| add_filter('product_enquery_fields',function($fields){ | |
| $new_fields = $fields; | |
| $new_fields['company'] = array( | |
| 'label' => __('Company', 'woocommerce'), | |
| 'type' => 'text', | |
| 'weight'=>9, | |
| ); | |
| return $new_fields; | |
| },10,2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment