How to hide API key with ShortPixel Image Optimizer?

The API Key inside ShortPixel Image Optimizer plugin can be hidden:

  • edit wp-config.php (either use your cPanel's file manager's editor or a WP plugin like WP File Manager)
  • and add, just after the beginning <?php tag, on new lines:
define('SHORTPIXEL_HIDE_API_KEY', true);

Make sure you replace the <<YOUR API KEY HERE>> part with your actual API Key.

You can, also, use our subaccount feature for one-time plans.

Still need help? Contact Us Contact Us