Add licence key for local instance

Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

When deploying the Advanced Post Types Order plugin on local machines (e.g. localhost, 127.0.0.1, .dev, staging.wpengine.com ) a licence key is not required as default. This is to speed up the development process and avoid any additional management tasks.

local-instance-no-key-requirement

There are situations when the local database is migrated to production server. Since there is no key applied, it require a valid licence to be entered on live server after the migration process completed. Sometimes this create more troubles than helps.

To force the plugin to prompt for a licence key requirement, a simple code line can be used. This should be placed within wp-config.php file located in the WordPress root.

define('APTO_REQUIRE_KEY', TRUE);