support.cubewp.com support.cubewp.com
  • Helpdesk
  • Support Forum
Get CubeWP
support.cubewp.com support.cubewp.com
Get CubeWP
support.cubewp.com
  • Helpdesk
  • Support Forum
  1. Home
  2. Forums
  3. Feedback
  4. Create Custom Fields Group (Settings)
  5. Reply To: Create Custom Fields Group (Settings)
Umer Kharboot
Participant
1 week, 4 days ago

Hi,
Thank you for showing interest in CubeWP.

We have made this field for the developers. You can add any fields in the CubeWP Settings by creating the fields simply. The Field you create in CubeWP settings will be available in the CubeWP Settings.
This feature greatly enhances the customization capabilities of CubeWP.
To fetch the value of a field on the frontend, developers can utilize the following code snippet:

global $cwpOptions;
$variable = !empty($cwpOptions[‘YOUR_OPTION_NAME’]) ? $cwpOptions[‘YOUR_OPTION_NAME’] : false;

if ($variable) {
// Perform desired actions or operations
}

When implementing this code, please remember to replace ‘YOUR_OPTION_NAME’ with the actual name of the option or field created in the CubeWP settings. The $variable variable will then hold the value of the field if it is not empty. Consequently, you can execute specific functionalities within the if statement based on the retrieved value.

It is important to customize the code to meet your specific requirements and incorporate it into your theme or plugin files wherever you need to access the CubeWP settings.

Best regards,
CubeWP Team

Search Forums

Recent Topics

  • Delete Custom Post Types
  • Archive page
  • Kadence Elements + Dynamic blocks support
  • Create Custom Fields Group (Settings)
  • Google JQuery Form Fields For For Country, State and City

Sign In

Log In
Register Lost Password

Recent Replies

  • Delete Custom Post Types
  • Kadence Elements + Dynamic blocks support
  • Kadence Elements + Dynamic blocks support
  • Creating “Locations” Taxonomy From a Front End Form.
  • Archive page
Leaf Illustration

© 2023 All Rights Reserved by CubeWP