Last active
April 5, 2018 19:22
-
-
Save NickGreen/15b1ca64ed9b461a037019f5f470bc77 to your computer and use it in GitHub Desktop.
hide variation with ID 99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hide_variation( $is_visible, $id ) { | |
if ( $id == 99 ) { | |
$is_visible = false; | |
} | |
return $is_visible; | |
} | |
add_filter( 'woocommerce_variation_is_visible', 'hide_variation', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment