Skip to content

Instantly share code, notes, and snippets.

@woogist
Created February 2, 2026 08:06
Show Gist options
  • Select an option

  • Save woogist/9bf799178baf84636db839eb01d9efd7 to your computer and use it in GitHub Desktop.

Select an option

Save woogist/9bf799178baf84636db839eb01d9efd7 to your computer and use it in GitHub Desktop.
[WooCommerce Memberships] Remove the "End Date" column from the My Memberships table
<?php // only copy this line if needed
/**
* Remove the "End Date" column from the My Memberships table
*
* @param array $columns the columns in the "My Memberships" table
* @return array $columns the updated array of columns
*/
function sv_wc_memberships_remove_end_date_column( $columns ) {
unset( $columns['membership-end-date'] );
return $columns;
}
add_filter( 'wc_memberships_my_memberships_column_names', 'sv_wc_memberships_remove_end_date_column' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment