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
Moderator
1 year, 11 months 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

  • Problems with migration
  • ‘Pages’ Menu Disappears in WordPress Multisite with CubeWP Framework Active
  • How i can change design of user dashboard tabs?
  • How to create custom header
  • Time picker display format

Sign In

Log In
Register Lost Password

Recent Replies

  • Time picker display format
  • Problems with migration
  • ‘Pages’ Menu Disappears in WordPress Multisite with CubeWP Framework Active
  • ‘Pages’ Menu Disappears in WordPress Multisite with CubeWP Framework Active
  • Time picker display format
Leaf Illustration

© 2023 All Rights Reserved by CubeWP