不需要的文本出现在发票上

问题描述

美好的一天,

谁能帮我从 Dokan Invoice 中删除它?我已经尝试将此代码粘贴到我的子主题上,但没有任何改变。非常感谢!

‘_dokan_commission_rate’,‘_dokan_commission_type’,‘_dokan_additional_fee’

add_filter(‘wf_pklist_modify_Meta_data’,‘webtoffee_modify_Meta_data’,10,2);
function webtoffee_modify_Meta_data($Meta) {
// Below are the keys for bundled products and composite products – Change the array keys according to the needs
$keys = array(
‘_dokan_commission_rate’,‘_dokan_additional_fee’
);
foreach ($Meta as $id => $value) {
if (in_array($id,$keys) && $id !== 0) {
if (isset($Meta[$id])) {
unset($Meta[$id]);
}
} else {
$Meta[$id] = $value . ‘<br />’;
}
}
return $Meta;
}`

Problem 1 Problem

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)