Last active
February 4, 2019 22:44
-
-
Save bekarice/8c4352e9964478ec2a55 to your computer and use it in GitHub Desktop.
WooCommerce Memberships: remove "end date" column from My Memberships table
This file contains 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 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