Table of Contents
Register custom tab #
Use the filter hubloy_membership_admin_settings_tabs
to register a custom setting tab. For example
The array value for url
is a single string that will be appended at the end of the custom settings endpoint eg <yoursite>/wp-admin/admin.php?page=memberships-by-hubloy-settings#/custom
Render form and data update #
Once the setting tab is in place, the next step is to handle custom form rendering. Use the action hubloy_membership_get_settings_section
to render a form . For example
The content of the form
array value should be the inner html without the form tag
Once you have the sufficient form fields, use the action hubloy_membership_update_settings_section
to update the settings data