Set plugin settings via wp-config.php?
-
Hello,
Is it possible to set plugin settings via wp-config.php?
For example, in S3-Uploads, you can configure the following on wp-config.phpdefine(‘S3_UPLOADS_BUCKET’, ‘…’);
define(‘S3_UPLOADS_KEY’, ‘…’);
define(‘S3_UPLOADS_SECRET’, ‘…’);
define(‘S3_UPLOADS_REGION’, ‘…’);
define(‘S3_UPLOADS_AUTOENABLE’, true);
define(‘S3_UPLOADS_BUCKET_URL’, ‘…’);And those options are greyed out in the admin panel so you won’t be able to change them from there.
It’s useful when you’re orchestrating multiple sites (via Ansible/Chef/Puppet) and you can set up new sites with security options in place by default.
The topic ‘Set plugin settings via wp-config.php?’ is closed to new replies.