View Categories

Can I hide the ‘Bulk ShortPixel’ menu?

Yes, you can!

If you are using
ShortPixel Image Optimizer and you would like, for whatever reason, to hide the menu Media > Bulk ShortPixel, you’ll need to add the following code snippet to your functions.php file.

add_action('admin_menu', function () {
  remove_submenu_page('upload.php', 'wp-short-pixel-bulk');
}, 20);

If you are not comfortable editing your WordPress files, you can also do the following.

  1. Install a code snippet plugin like this one.
  2. Go to Snippets > Add New
  3. Give the snippet a name, add the code snippet above and choose to “Only run in administration area“.
Note: if you hide the menu, the only way to access your Bulk ShortPixel page will be by going to
https://mydomain.com/wp-admin/upload.php?page=wp-short-pixel-bulk (remember to change mydomain.com for your own domain).