Skip to content

Instantly share code, notes, and snippets.

@contemplate
Created September 7, 2022 13:48
Show Gist options
  • Select an option

  • Save contemplate/3b85f503632a5cc142a24c4623691265 to your computer and use it in GitHub Desktop.

Select an option

Save contemplate/3b85f503632a5cc142a24c4623691265 to your computer and use it in GitHub Desktop.
WooCommerce Subscriptions: remove end date from My Account
// 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