I'm following this tutorial to merge My Account tabs: https://www.businessbloomer.com/woocommerce-merge-account-tabs/ I want to merge Orders and Subscriptions, thus hide Subscriptions tab and display its content in Orders tab.
So, unset($items['subscriptions']);
works fine, the tab gets hidden.
But when I do add_action( 'woocommerce_account_orders_endpoint', 'woocommerce_account_subscriptions' );
it doesn't work, I get call_user_func_array() expects parameter 1 to be a valid callback, function 'woocommerce_account_subscriptions' not found or invalid function name
.
Does anyone happen to know the correct callback function name?