Created
February 2, 2026 08:06
-
-
Save woogist/9bf799178baf84636db839eb01d9efd7 to your computer and use it in GitHub Desktop.
[WooCommerce Memberships] Remove the "End Date" column from the My Memberships table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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