Skip to content

Instantly share code, notes, and snippets.

@bekarice
Last active February 4, 2019 22:44
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/8c4352e9964478ec2a55 to your computer and use it in GitHub Desktop.
Save bekarice/8c4352e9964478ec2a55 to your computer and use it in GitHub Desktop.
WooCommerce Memberships: remove "end date" column from My Memberships table
<?php
// Only copy opening php tag if needed
// Remove the "End Date" column from the My Memberships table
function sv_remove_membership_end_date_column( $columns ) {
unset( $columns['membership-end-date'] );
return $columns;
}
add_filter( 'wc_memberships_my_memberships_column_names', 'sv_remove_membership_end_date_column' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment