The API Key inside the ShortPixel Image Optimizer plugin can be hidden in two simple steps:
- 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). - 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);