Overview #
Global Variables adds a control layer on top of your existing shortcodes. Instead of repeating long and complicated GravityMath (or other) shortcodes across multiple forms, pages, and notifications, you define them once as reusable variables and reference those variables wherever you need them.
The plugin does not replace GravityMath or any plugin that provides the shortcode itself. All processing still happens through the original shortcode. This plugin simply expands the variable into its associated shortcode and hands it off for processing.
By centralizing your logic and reusing it through variables, you eliminate duplication, reduce errors, and make complex logic dramatically easier to maintain.
Requirements & Dependencies #
Global Variables for GravityMath is designed to sit on top of your existing Gravity Forms and shortcode setup. It does not replace or bundle any of the underlying plugins it works with.
- You need a WordPress site with Gravity Forms installed and active.
- Any shortcodes you reference in your variables must be provided by their original plugin or theme and remain active on your site.
Licenses for Gravity Forms, and any other third‑party plugins are not included with Global Variables and must be purchased separately from their respective vendors.
Core Concept: Variables #
A variable in this plugin is simply a reusable reference to a shortcode you would normally paste directly into a field, notification, page, or GravityMath calculation. Instead of maintaining that shortcode in multiple places, you define it once inside the Global Variables screen.
Each variable has two parts:
- A slug — this becomes the merge‑tag style reference you’ll reuse.
- A shortcode formula — the underlying shortcode or logic you want to centralize.
When the variable is used, the plugin expands it into its full shortcode and hands it off to the correct processor (GravityMath or any other shortcode provider). This gives you a single source of truth for all your calculations and shortcode‑based logic across your entire site.
Finding the Plugin in Your Dashboard #
After activation, Global Variables adds a dedicated menu item under the GravityOps menu in your WordPress admin sidebar.
From this menu you can:
- Open the Global Variables settings screen
- Access your Account area to manage your license and related information, contact support, or join the affiliate program
- View the plugin’s documentation
You can also reach the Global Variables screen through the standard Gravity Forms path:
Forms → Settings → Global Variables
Both paths lead to the same page where you create, edit, and manage all of your reusable variables.