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 a new line, just after the beginning <?php tag, the following.
define('SHORTPIXEL_HIDE_API_KEY', true);

This will also hide the “ShortPixel Account” button displayed within our plugin’s settings.