Created
January 14, 2016 05:21
-
-
Save bekarice/3f4d67e7deff379a535b to your computer and use it in GitHub Desktop.
WooCommerce Memberships: Remove the "Description" / Excerpt column from "My Products" In the Member Area
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 | |
// Only copy opening php if needed | |
// Removes the product short description / excerpt column from "My Products" | |
function sv_members_area_products_table_columns( $columns ) { | |
if ( isset( $columns['membership-product-excerpt'] ) ) { | |
unset( $columns['membership-product-excerpt'] ); | |
} | |
return $columns; | |
} | |
add_filter('wc_memberships_members_area_my_membership_products_column_names', 'sv_members_area_products_table_columns', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, is there a way to remove the description from the "my discounts" view?