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 ); |
Hello, is there a way to remove the description from the "my discounts" view?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
Please can you help me to resolve this problem, when i try to put this shortcodes [wcm_nonmember] Non-member Content [/wcm_nonmember], i get effect only in admin connection, but when i try to log out i cant see any effect of restriction, in facts i would to hide just a part of my posts/pages ... without hidden the featured image ? hope you understand what i try to explaine, thanks a lot.