Created
September 7, 2022 13:48
-
-
Save contemplate/3b85f503632a5cc142a24c4623691265 to your computer and use it in GitHub Desktop.
WooCommerce Subscriptions: remove end date from My Account
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
| // filter found here: https://github.com/wp-premium/woocommerce-subscriptions/blob/master/templates/myaccount/subscription-details.php | |
| add_filter('wcs_subscription_details_table_dates_to_display', 'wc_remove_end_date_column', 10, 2); | |
| function wc_remove_end_date_column($rows, $subscription){ | |
| unset($rows['end']); | |
| return $rows; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment