The API Key inside the ShortPixel Image Optimizer plugin can be hidden in two simple steps:
- Open the
wp-config.phpfile (either use your file manager from your hosting control panel, an FTP client or a plugin like File Manager). - Add a new line, just after the beginning
<?phptag, the following.
define('SHORTPIXEL_HIDE_API_KEY', true);
This will also hide the “ShortPixel Account” button displayed within our plugin’s settings.