Last active
November 1, 2022 15:07
-
-
Save plugin-republic/869d2fa0c147797a8659e09532dfa0b5 to your computer and use it in GitHub Desktop.
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
<?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