The CF Geo Plugin has many constants that affect the operation of the plugin or return certain information important for the operation of the plugin and can be accessed within your WordPress theme. Some of these constants can be changed, some are not recommended to change and some are only informative and visual representations within the plugin.

CFGP_FILEThe full path and filename of main plugin file
CFGP_VERSIONCurrent plugin version
CFGP_ROOTFilesystem directory path for the plugin CFGP_FILE
CFGP_INCLUDESFilesystem directory path for plugin include files
CFGP_ADMINFilesystem directory path for plugin admin files
CFGP_URLPlugin direct URL
CFGP_ASSETSThe URL for the plugin assets
CFGP_NAMECF Geo Plugin locale domain
CFGP_METABOXPlugin metabox prefix
CFGP_PREFIXPlugin session prefix (controlled by version)
CFGP_SESSIONSession expire in XX minutes (default: 30)
W3TC_DYNAMIC_SECURITY“W3 Total Cache” setup for the partial cache. This is only used with “W3 Total Cache” plugin.
CFGP_DEV_MODEEnable developer mode ( only for developer license ) (bool true/false)
CFGP_MULTISITEStatus about multisite installation (bool true/false)
CFGP_IPClient IP address
CFGP_SERVER_IPServer IP address
CFGP_PROXYStatus about proxy activation (bool true/false)
CFGP_ACTIVATEDStatus about license key activation (bool true/false)

These constants are easily accessed but it can also be modified within your wp-config.php file.


If you want to change the constants out of desire to make some hack and access the license protected parts of the plugin you will come across with a dead end and you will broke plugin functionality. CF Geo Plugin uses the API service and all restrictions are made within the remotely API services. If we notice that you are using our plugin unauthorized or for criminal activity, we have a right under our policy to block you from using the plugin, even to report you to the authorities without prior notice.


// Change CF Geo-Plugin session expire time
define('CFGP_SESSION', 30);

Other constants can be changed in the same way, but this is not recommended without prior technical knowledge.

To easily access a constant within your WordPress theme, all you have to do is check and display or use the value of the constant:

	echo 'Theme running on the WordPress multi site.';

Editable constants (safe for use)

Here is the list of the safe constants what you can use inside your WordPress installation: