Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@Geek-azzeddine Geek-azzeddine commented Dec 15, 2017

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

This comment has been minimized.

Copy link

@marqattack marqattack commented Feb 27, 2019

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