Skip to content

Instantly share code, notes, and snippets.

@woogists
Created March 9, 2018 16:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogists/53d13508835276e66578f9c6f2398d03 to your computer and use it in GitHub Desktop.
Save woogists/53d13508835276e66578f9c6f2398d03 to your computer and use it in GitHub Desktop.
[ShipStation] Export Custom Field Data to ShipStation
// 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
}
@pdfrequest3
Copy link

Where to find the meta_key? I'm sorry. I'm new to this. I'm trying to export data from Woocommerce "Extra Product Options" Plugin to Shipstation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment