Last active
October 3, 2018 08:36
-
-
Save denisstoyanov/77c8622c8ada1858e7a920ce18672c8c to your computer and use it in GitHub Desktop.
Removes short description in WooCommerce Single Product page
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 | |
/* Source: https://wordpress.stackexchange.com/a/98251 */ | |
function wpa_98244_filter_short_description( $desc ){ | |
global $product; | |
if ( is_single( $product->id ) ) | |
$desc = ''; | |
return $desc; | |
} | |
add_filter( 'woocommerce_short_description', 'wpa_98244_filter_short_description' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment