如何找到自定义字段名称来编写 wp all import php 函数
How to find custom field name to write a wp all import php function
如果一个名为 Trattativa_riservata=SI 的字段,我需要将 XMl 中的价格字段设置为 null 或 0。如果为 NO,则保留 XML 中的价格值。
有人可以帮助我吗?
使用这个简单的 PHP 代码找到了解决方案:
function private_negotiation($negotiation, $price){
if ($negotiation == 'SI') {
$price = 0;
}
return $price;
}
感谢大家
如果一个名为 Trattativa_riservata=SI 的字段,我需要将 XMl 中的价格字段设置为 null 或 0。如果为 NO,则保留 XML 中的价格值。 有人可以帮助我吗?
使用这个简单的 PHP 代码找到了解决方案:
function private_negotiation($negotiation, $price){
if ($negotiation == 'SI') {
$price = 0;
}
return $price;
}
感谢大家