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, just after the beginning <?php tag, on new lines:
    define('SHORTPIXEL_API_KEY', '<<YOUR API KEY HERE>>');
    define('SHORTPIXEL_HIDE_API_KEY', true);

    Make sure to replace <<YOUR API KEY HERE>> with your actual API Key!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us