如果类别中的产品数量为 0,我希望能够在类别下拉菜单(wordpress + woocommerce)中隐藏类别。有人知道怎么做吗?我在下面试过这个:
model.train(dataset_train, dataset_val,
learning_rate=config.LEARNING_RATE,
epochs=100,
layers='heads')#You can also use 'all' to train all network.
和
wp_dropdown_categories('hide_empty=0');
答案 0 :(得分:0)