Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bekarice/3f4d67e7deff379a535b to your computer and use it in GitHub Desktop.
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
<?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 );
@Geek-azzeddine
Copy link

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.

@marqattack
Copy link

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