php [ShipStation]将自定义字段数据导出到ShipStation

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php [ShipStation]将自定义字段数据导出到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
}

以上是关于php [ShipStation]将自定义字段数据导出到ShipStation的主要内容,如果未能解决你的问题,请参考以下文章