Created
December 22, 2015 13:09
-
-
Save DustinHartzler/9ba0f09af35be201f9e8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
add_filter( 'woocommerce_variation_is_visible', 'disable_specific_variation', 10, 4 ); | |
function disable_specific_variation( $visible, $variation_id, $product_id, $variation ) { | |
if ( 23 == $variation_id ){ | |
$visible = false; | |
} | |
return $visible; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment