Count-Tabs | Addon library
kandi X-RAY | Count-Tabs Summary
kandi X-RAY | Count-Tabs Summary
Count-Tabs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Counts the tabs
Count-Tabs Key Features
Count-Tabs Examples and Code Snippets
Community Discussions
Trending Discussions on Count-Tabs
QUESTION
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?
...ANSWER
Answered 2020-Sep-19 at 15:28Looking at their code... the callback function is a method of the class WCS_Query
So if you do this, it should work.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Count-Tabs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page