📜  将条件逻辑应用于 woocommerce 变体 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:01.457000             🧑  作者: Mango

代码示例1
add_filter( 'woocommerce_ajax_variation_threshold', 'wc_ajax_variation_threshold' );
function wc_ajax_variation_threshold() {
    return 150;
}