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/861f249d04f3caef8631 to your computer and use it in GitHub Desktop.
Save bekarice/861f249d04f3caef8631 to your computer and use it in GitHub Desktop.
WooCommerce Memberships: Remove "My Content" Type column from the Member Area
<?php
// Only copy opening php tag if needed
// Removes the "Type" column from the "My Content" section of the member area
function sv_members_area_content_remove_column( $columns ) {
// unset the "type" column, which shows post, page, project, etc
if ( isset( $columns['membership-content-type'] ) ) {
unset( $columns['membership-content-type'] );
}
return $columns;
}
add_filter( 'wc_memberships_members_area_my_membership_content_column_names', 'sv_members_area_content_remove_column' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment