Created
July 2, 2020 16:39
-
-
Save plugin-republic/8d46400de7ebcd43be6b6ad503da9db5 to your computer and use it in GitHub Desktop.
Display variant name without SKU in child product
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
<?php | |
/** | |
* Display variant name without SKU in child product | |
*/ | |
function prefix_variation_name_variable_child_select( $name, $variant ) { | |
return $variant->get_name(); | |
} | |
add_filter( 'pewc_variation_name_variable_child_select', 'prefix_variation_name_variable_child_select', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment