View Categories

How to hide the API key with ShortPixel Image Optimizer?

The API Key inside the ShortPixel Image Optimizer plugin can be hidden in two simple steps:

  1. Open the wp-config.php file (either use your file manager from your hosting control panel, an FTP client or a plugin like File Manager).
  2. Add on new lines, just after the beginning <?php tag, the following. Make sure to replace <<YOUR API KEY HERE>> with your actual API Key!
define('SHORTPIXEL_API_KEY', '<<YOUR API KEY HERE>>');
define('SHORTPIXEL_HIDE_API_KEY', true);