Created
November 5, 2014 02:05
-
-
Save mikejolley/23db488e7cd753c2c066 to your computer and use it in GitHub Desktop.
ShipStation Custom Fields
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 this code to your theme functions.php file or a custom plugin | |
add_filter( 'woocommerce_shipstation_export_custom_field_2', 'shipstation_custom_field_2' ); | |
function shipstation_custom_field_2() { | |
return '_meta_key'; // Replace this with the key of your custom field | |
} | |
// This is for custom field 3 | |
add_filter( 'woocommerce_shipstation_export_custom_field_3', 'shipstation_custom_field_3' ); | |
function shipstation_custom_field_3() { | |
return '_meta_key_2'; // Replace this with the key of your custom field | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment