Getting started8
Updates and backups7
Security and uptime6
Speed and growth6
Clients9
Integrations3
Keep your PHP, CSS and JavaScript in one library and send each snippet to the sites that need it. Every version is kept, each site shows which version it runs, and the sites on an older version are one click from the new one. Open it from Tools, Snippets.
Add a snippet
- Click New snippet, give it a name, and pick PHP, CSS or JavaScript.
- Pick where it runs: for PHP everywhere, only the website or only wp-admin; for CSS the website, wp-admin or both; for JavaScript the end of the page, the head, or wp-admin.
- Paste the code (PHP with or without
<?php; CSS and JavaScript without their tags) and, if you like, a note for the team.
Changing the code or where it runs saves a new version. Old versions stay under Versions; Use this one brings one back as a new version.
Send it, safely
Pick the sites on the Sites tab and click Send. PitwallWP goes one site at a time:
- Worked before. The home page must work now. A site that already shows an error is left alone.
- Tried first. The site checks the PHP with its own parser (it never runs code that does not parse), then runs the new version only for PitwallWP’s own test visit, which carries a secret token. Visitors still get what they had. PitwallWP loads the home page that way (and wp-admin, for code that runs there) and looks for errors.
- Live. Only then do visitors get it, and the page cache is cleared.
- Checked as a visitor. The home page is loaded once more. If it broke, the version before comes back by itself (or the snippet goes, if it was new).
Each row shows the steps it passed, or why it stopped. CSS and JavaScript cannot stop a page from loading, so they skip the trial, but the page is still checked before and after.
When something goes wrong later
A PHP snippet can work on the home page and fail on another page. The first time it causes an error, the site switches it off at once: only that visit fails, and the next visitor gets the site without it. You get an alert, it shows in Needs attention, and the site’s Email & code tab shows the error. Fix the snippet and send it again, go Back to the version before, or Remove it.
Safety
- Only owners add, change and send snippets. Technicians can remove one from a site. API keys cannot send code.
- On dashboards that sign in with PitwallWP, sending asks for your two-factor code, once every 10 minutes.
- PitwallWP’s own requests never run snippets, so PitwallWP can always reach a site to fix it.
- To stop every snippet on a site by hand, add
define('PITWALL_SNIPPETS_OFF', true);to its wp-config.php. - A site that never gets a snippet runs exactly as before. Sites need PitwallWP Connect 0.40.0.
- A snippet still on a site cannot be deleted, and the Snippets module cannot be switched off while snippets run, so no code runs where you cannot see it.