Define license key as PHP constant
Normally the license key for WP Synchro PRO would be entered in the 'Setup' and saved in the database.
But in some instances, it can be a nice little feature to be able to set the license key in code instead.
Luckily this was introduced in v1.7.0 of WP Synchro, so it is easy to do this.
Add the below piece of code into your wp-config.php or similar early-loaded PHP files, that is loaded before plugins.
Just make sure it is entered before WordPress is loaded, so it needs to be before this section:
/* That's all, stop editing! Happy blogging. */ /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');
When using something like Roots Bedrock, it can be added to the /config/application.php along with the other configurations. And even in the /config/environments/ php files, for using different keys on different environments.
Defining in themes/plugins
License key can not currently be defined in other plugins or themes, as they are not always loaded when doing WP Synchro specific operations. Let us know if this is important for you to be able to do.
Still using free version? - Upgrade to PRO with 14 day free trial
PRO version makes it possible for you to migrate files between your sites and to
automatically make a database backup before migration.
You will get support for Basic Authentication and email notifications on success or failure. You also get access to priority support