WPIntell

Source evidence

Unable to add a new snippet

WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager · support · 2026-03-25T03:59:00+00:00

mixedsentiment
highseverity
0.95relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 25 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Niharika Verma resolved
Hi Everytime I try to add a new snippet, the page simply reloads. I tried disabling plugins and everything but getting the same error. Hi @niharikaverma95 , Thank you for reaching out, and I’m sorry you ran into that issue. We haven’t seen other reports of this behavior, so we’d like to gather a few details to help pinpoint the cause. Does it happen right after you click “ Save Snippet ”, or does it refresh earlier? After it reloads, is the snippet actually being saved? If you go back to the snippets list, do you see the new snippet there, or does it disappear entirely? Could you also share the snippet code you’re trying to add and confirm the selected code type (PHP, HTML, CSS, or JavaScript)? A syntax error would typically only prevent activation (to protect the site), but you should still be able to save the snippet. Lastly, even with plugins disabled, a security layer can sometimes block the save request and cause a “silent reload.” Are you using a firewall/WAF such as Cloudflare, Sucuri or host-level security (e.g., ModSecurity)? If so, could you temporarily disable/relax it and try saving again? Thanks, Hi It is happening when I click on “add new custom snippet” and then it just reloads. I wanted to explore this option as I some html/text based snippets which I would like to add after paragraphs but it won’t let me. Header/Footer part is working completely fine. Its just happening when clicking on add a new snippet. No error message, no warning. I checked with my hosting too to see if they can look for a conflict but they confirmed that it might be a bug as even after disabling plugins and themes, it is resulting in the reload. Hi @niharikaverma95 , Based on what you’re describing, we believe the issue is related to your server’s security configuration silently blocking the page request. When you click “Add Custom Snippet,” the link navigates to a URL that includes a custom=true parameter, which tells our plugin to show the snippet editor instead of the library. Some server-level security tools (like ModSecurity) can flag query parameters like custom=true as suspicious and silently redirect you back, which is exactly the “reload with no error” behavior you’re seeing. This would also explain why Headers & Footers works fine (that page doesn’t use the custom parameter) and why disabling plugins and themes didn’t help (since this happens at the server level, before WordPress even processes the request). Here’s how to confirm: 1. When you click “Add Custom Snippet” and the page reloads, check your browser’s address bar, does the URL still contain custom=true , or was it stripped away? 2. Try navigating directly to this URL by pasting it in your browser: <a href="http://yourdomain.com/wp-admin/admin.php?page=wpcode-snippet-manager&custom=true" target="_blank" rel="noreferrer noopener">yourdomain.com/wp-admin/admin.php?page=wpcode-snippet-manager&custom=true</a> (replace <a href="http://yourdomain.com" target="_blank" rel="noreferrer noopener">yourdomain.com</a> with your actual domain). 3. If that also reloads, please ask your hosting provider to check their WAF (Web Application Firewall) or ModSecurity logs for any blocked requests to admin.php containing the custom parameter. They may need to whitelist this specific request for your admin area. Thanks, Hi Thanks for getting back with the details. I shared your response with my hosting and they were able to look into the settings and make it work. Everything is working smoothly now. Thank you 🙌🏻

Comments

4 shown
markomiljanovic 2026-03-25T08:34:00+00:00

Hi @niharikaverma95 , Thank you for reaching out, and I’m sorry you ran into that issue. We haven’t seen other reports of this behavior, so we’d like to gather a few details to help pinpoint the cause. Does it happen right after you click “ Save Snippet ”, or does it refresh earlier? After it reloads, is the snippet actually being saved? If you go back to the snippets list, do you see the new snippet there, or does it disappear entirely? Could you also share the snippet code you’re trying to add and confirm the selected code type (PHP, HTML, CSS, or JavaScript)? A syntax error would typically only prevent activation (to protect the site), but you should still be able to save the snippet. Lastly, even with plugins disabled, a security layer can sometimes block the save request and cause a “silent reload.” Are you using a firewall/WAF such as Cloudflare, Sucuri or host-level security (e.g., ModSecurity)? If so, could you temporarily disable/relax it and try saving again? Thanks,

Niharika Verma 2026-03-25T09:36:00+00:00

Hi It is happening when I click on “add new custom snippet” and then it just reloads. I wanted to explore this option as I some html/text based snippets which I would like to add after paragraphs but it won’t let me. Header/Footer part is working completely fine. Its just happening when clicking on add a new snippet. No error message, no warning. I checked with my hosting too to see if they can look for a conflict but they confirmed that it might be a bug as even after disabling plugins and themes, it is resulting in the reload.

markomiljanovic 2026-03-25T16:04:00+00:00

Hi @niharikaverma95 , Based on what you’re describing, we believe the issue is related to your server’s security configuration silently blocking the page request. When you click “Add Custom Snippet,” the link navigates to a URL that includes a custom=true parameter, which tells our plugin to show the snippet editor instead of the library. Some server-level security tools (like ModSecurity) can flag query parameters like custom=true as suspicious and silently redirect you back, which is exactly the “reload with no error” behavior you’re seeing. This would also explain why Headers & Footers works fine (that page doesn’t use the custom parameter) and why disabling plugins and themes didn’t help (since this happens at the server level, before WordPress even processes the request). Here’s how to confirm: 1. When you click “Add Custom Snippet” and the page reloads, check your browser’s address bar, does the URL still contain custom=true , or was it stripped away? 2. Try navigating directly to this URL by pasting it in your browser: <a href="http://yourdomain.com/wp-admin/admin.php?page=wpcode-snippet-manager&custom=true" target="_blank" rel="noreferrer noopener">yourdomain.com/wp-admin/admin.php?page=wpcode-snippet-manager&custom=true</a> (replace <a href="http://yourdomain.com" target="_blank" rel="noreferrer noopener">yourdomain.com</a> with your actual domain). 3. If that also reloads, please ask your hosting provider to check their WAF (Web Application Firewall) or ModSecurity logs for any blocked requests to admin.php containing the custom parameter. They may need to whitelist this specific request for your admin area. Thanks,

Niharika Verma 2026-03-27T02:03:00+00:00

Hi Thanks for getting back with the details. I shared your response with my hosting and they were able to look into the settings and make it work. Everything is working smoothly now. Thank you 🙌🏻