Code snippets you don't recognise, read and switched off
List the snippets in WPCode or Code Snippets, have the code of any you don't know explained in plain words, and switch off the ones that look wrong.
- Difficulty
- Beginner
- Time
- about 15 min
- Works with
- WPCode, Code Snippets
List the code snippets on my site: what kind each is, where it runs, whether it's on, and which ones SAR wrote. For [snippet name] and any others I didn't write, read the code and explain in plain words what it does. Switch off [snippet name]. Don't delete anything.
Already connected?
If SAR is already in your AI app, this is enough:
List my code snippets, explain the ones I don't know, and switch off [snippet name].
What happens
- The AI app lists the snippets: type, where they run, whether they are on, and which SAR wrote.
- It reads the code of the ones you ask about and explains what each does.
- Switching a snippet off is always allowed, because it stops code from running; it happens at once and can be undone.
- Nothing is deleted.
Approvals involved
Nothing here changes your site: no approval needed.
wordpress_list_snippetsList code snippetsNonewordpress_get_snippetGet a code snippetNonewordpress_deactivate_snippetSwitch a code snippet offNone
What you get
Every snippet on your site accounted for, and the doubtful ones off. If one looks planted, keep it off rather than deleted, and tell whoever runs your hosting so they can look.
Related recipes
- Maintenance · about 15 minTidy up old code snippets in WPCode or Code SnippetsGo through the snippets added over the years, learn what each one does, switch off the ones you don't need and move the rest of the clutter to the trash.
- Design & builders · about 20 minFix a page that scrolls sideways on mobile with a small CSS snippetFind the element that makes a page wider than a phone screen and fix it with a CSS snippet in WPCode or Code Snippets, switched on with your password.
- Security & backups · about 15 minTake a fresh backup before a risky changeCheck when your site was last backed up, take a new backup with your own backup plugin, and make risky changes wait for a fresh one in future.
Try it on your own site
Install the plugin, add SAR to your AI app and paste the prompt. Free to start.