mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
https://stackoverflow.com/questions/77980540/change-the-table-dates-from-my-account-view-subscription-in-woocommerce/77981376
7 lines
375 B
Text
7 lines
375 B
Text
add_filter( 'wcs_subscription_details_table_dates_to_display', 'filter_subscription_details_table_dates' );
|
|
function filter_subscription_details_table_dates( $table_dates ) {
|
|
if ( is_wc_endpoint_url('view-subscription') && isset($table_dates['next_payment']) ) {
|
|
unset($table_dates['next_payment']); // Remove "Next payment" row.
|
|
}
|
|
return $table_dates;
|
|
}
|