我想要以下函数来检查多个产品 ID !==
(1427、1428、1429)。最好的方法是什么?
谢谢你。
//add multistep
add_action('wapf_before_wrapper', 'wapf_before_wrapper');
function wapf_before_wrapper($product) {
if($product->get_id() !==1427)
return;
?>
<div class="wapf-progress">
<div class="wapf-progress-bar"></div>
<div class="wapf-progress-steps"></div>
</div>
<?php
}
add_action('wapf_before_product_totals', 'wapf_before_product_totals');
function wapf_before_product_totals($product){
if($product->get_id() !==1427)
return;
?>
<div class="wapf_step_buttons">
<button class="button wapf_btn_prev" style="display:none">Previous</button>
<button class="button wapf_btn_next">Next</button>
</div>
<?php
}
//end multistep