{"id":916,"date":"2024-05-07T11:45:35","date_gmt":"2024-05-07T11:45:35","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/can-i-hide-the-bulk-shortpixel-menu\/"},"modified":"2025-08-27T08:40:24","modified_gmt":"2025-08-27T08:40:24","password":"","slug":"can-i-hide-the-bulk-shortpixel-menu","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/can-i-hide-the-bulk-shortpixel-menu\/","title":{"rendered":"Can I hide the &#8216;Bulk ShortPixel&#8217; menu?"},"content":{"rendered":"\n<p>Yes, you can!<\/p>\n\n\n\n<p>If you are using <a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\" target=\"_blank\" rel=\"noopener\">ShortPixel Image Optimizer<\/a> and you would like, for whatever reason, to hide the menu Media > Bulk ShortPixel, you&#8217;ll need to add the following code snippet to your functions.php file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">add_action('admin_menu', function () {<br>  remove_submenu_page('upload.php', 'wp-short-pixel-bulk');<br>}, 20);<\/pre>\n\n\n\n<p>If you are not comfortable editing your WordPress files, you can also do the following.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Install a code snippet plugin<\/strong> like <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" rel=\"noopener\">this one<\/a>.<\/li>\n\n\n\n<li>Go to <strong>Snippets > Add New<\/strong>.<\/li>\n\n\n\n<li>Give the snippet a name,\u00a0add the code snippet above and choose to &#8220;<strong>Only run in administration area<\/strong>&#8220;.<\/li>\n<\/ol>\n\n\n\n<section class=\"callout\"><strong>Note<\/strong>: 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).<\/section>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;ll need to add the following code snippet to your functions.php file. add_action(&#8216;admin_menu&#8217;, function () { remove_submenu_page(&#8216;upload.php&#8217;, &#8216;wp-short-pixel-bulk&#8217;);}, 20); If you are not comfortable editing your WordPress files, you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[37],"glossaries":[],"doc_tag":[],"class_list":["post-916","docs","type-docs","status-publish","hentry","doc_category-shortpixel-image-optimizer"],"blocksy_meta":[],"year_month":"2026-05","word_count":131,"total_views":"2153","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"ShortPixel Image Optimizer","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/shortpixel-image-optimizer\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=916"}],"version-history":[{"count":1,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/916\/revisions"}],"predecessor-version":[{"id":1416,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/916\/revisions\/1416"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=916"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=916"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=916"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}