woof_block_toggle_state
允许通过分类块的切换状态进行操作,例如在移动设备上使其关闭:
add_filter('woof_block_toggle_state', function($block_is_closed) {
if (wp_is_mobile()) {
$block_is_closed = true;
}
return $block_is_closed;
});
允许通过分类块的切换状态进行操作,例如在移动设备上使其关闭:
add_filter('woof_block_toggle_state', function($block_is_closed) {
if (wp_is_mobile()) {
$block_is_closed = true;
}
return $block_is_closed;
});