In this tutorial I would like to share with you how I figured in out the way of creating custom settings tabs on “Edit Memberships Plan” pages.
I needed to add a custom tab there for settings of my Simple Mailchimp Sync plugin.
And right now in this tutorial we are going to create a simple tab like this:
The good news is that WooCommerce Memberships plugin is customizable with hooks, actually there are two of them we need:
wc_membership_plan_data_tabs– allows to filter an array of tabs, remove or add items into it.
wc_membership_plan_data_panels– this hook will help us when we need to display HTML of our tab.