• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

  • Home
  • Features
  • Docs
  • Contact

Installation

  • Configuring PayPal Gateway

Shortcodes

  • List all memberships
  • Protect Content

Payment Gateways

  • PayPal Gateway

Customization

  • Custom Settings Page
  • Home
  • Documentation
  • Customization
  • Custom Settings Page

Custom Settings Page

Table of Contents
  • Register custom tab
  • Render form and data update

Register custom tab #

Use the filter hubloy_membership_admin_settings_tabs to register a custom setting tab. For example

View this gist on GitHub

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

View this gist on GitHub

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

View this gist on GitHub

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on April 13, 2022
Table of Contents
  • Register custom tab
  • Render form and data update

Copyright © 2022 Hubloy

  • Cookie Policy
  • Privacy Policy
Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}