mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-01 11:52:25 +08:00
5 lines
247 B
Text
5 lines
247 B
Text
add_filter( 'woocommerce_product_subcategories_args', 'custom_woocommerce_product_subcategories_args' );
|
|
function custom_woocommerce_product_subcategories_args( $args ) {
|
|
$args['exclude'] = get_option( 'default_product_cat' );
|
|
return $args;
|
|
}
|