Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/869d2fa0c147797a8659e09532dfa0b5 to your computer and use it in GitHub Desktop.
Save plugin-republic/869d2fa0c147797a8659e09532dfa0b5 to your computer and use it in GitHub Desktop.
<?php
/*
* Send add-on field data to ShipStation
* @link https://woocommerce.com/document/shipstation-for-woocommerce/
*/
// This is for custom field 3
function prefix_shipstation_custom_field_2() {
return '_meta_key_2'; // Replace this with the key of your custom field
}
add_filter( 'woocommerce_shipstation_export_custom_field_2', 'prefix_shipstation_custom_field_2' );
// This is for custom field 3
function prefix_shipstation_custom_field_3() {
return '_meta_key_3'; // Replace this with the key of your custom field
}
add_filter( 'woocommerce_shipstation_export_custom_field_3', 'prefix_shipstation_custom_field_3' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment