Thanks for helping improve the WordPress Operations Runbook template.
Contributions are welcome for:
- factual corrections
- outdated WordPress or operations guidance
- safer command examples and warning coverage
- broken links or repository automation issues
This repository is an environment-agnostic operations template. It is not the place for site-specific secrets, internal escalation contacts, or hosting-provider-specific procedures unless they are clearly marked as optional and broadly reusable.
Read these files first:
README.mdWP-Operations-Runbook.mddocs/current-metrics.mdSECURITY.md
Related repositories in this document series may also need aligned updates:
wp-security-benchmarkwp-security-hardening-guidewp-security-style-guide
- Use the GitHub issue templates for inaccurate procedures, broken examples, or improvement requests.
- Do not use public issues for security-sensitive reports. Follow
SECURITY.mdinstead.
When filing a documentation bug, include the affected procedure or appendix, the source used to verify the issue, and whether companion repos may also need updates.
- Treat
WP-Operations-Runbook.mdas the canonical source. - Keep generated artifacts aligned with the canonical Markdown source, but do not hand-edit binary artifacts unless the change specifically targets the generation pipeline or template files.
- Keep the template environment-agnostic. Replace site-specific examples with placeholders or clearly marked alternatives.
- Verify WordPress-specific commands and terminology against primary sources
such as
developer.wordpress.org, WP-CLI documentation, or WordPress core documentation. - If a destructive command is added or made more prominent, review nearby warnings and rollback guidance.
- Update
CHANGELOG.mdfor user-visible documentation or workflow changes.
If your change affects sections, command counts, warnings, placeholders, or
other structural counts, update docs/current-metrics.md and run:
bash .github/scripts/verify-metrics.sh docs/current-metrics.mdThe metrics file is the canonical source of truth for the structural counts used in this repository.
This repository tracks generated .docx, .epub, and .pdf artifacts.
Regenerate them through the documented GitHub Actions workflow or an equivalent
local Pandoc toolchain when required by the change.
If you cannot regenerate artifacts locally, note that in the pull request instead of committing guessed outputs.
After generated artifacts change, run:
python3 .github/scripts/validate-artifacts.py
npm run validate:pdf-visualThis smoke check confirms the tracked PDF, EPUB, and DOCX outputs exist, are readable, and still contain expected canonical text and metadata markers. The Playwright PDF visual smoke test compares a small set of critical page clips against committed baselines.
For canonical document changes:
- Edit
WP-Operations-Runbook.md. - Run
bash .github/scripts/verify-metrics.sh docs/current-metrics.mdif the change affects structural counts, then updatedocs/current-metrics.mdas needed. - Update
CHANGELOG.mdfor any user-visible documentation or workflow change. - Merge to
main. - Confirm the phased
Generate PDF, Word & EPUB Documentsworkflow completes: it should build the outputs, run artifact and PDF visual validation, and only then publish regenerated files back tomain. - Use the standalone
Validate ArtifactsandValidate PDF Visualsworkflows for direct validator changes or manual rechecks without regenerating docs. - Create a version tag only when enough user-visible changes justify a release.
After tagging, confirm the
Create Releaseworkflow publishes the generated artifacts for that tag.
For workflow-only changes:
- Update
CHANGELOG.mdwhen the change affects maintainers or release behavior. - Manually dispatch the affected workflow after merge when a safe no-tag check is available.
- Avoid testing the release workflow against a new tag unless you intend to publish a real release.
This repository is part of a four-document WordPress security series. Review it against the companion repositories at least quarterly and before any release:
wp-security-benchmarkwp-security-hardening-guidewp-security-style-guide
During each review, check:
- shared glossary terms and preferred terminology
- WordPress, PHP, and WP-CLI version references
- linked commands, external references, and support/reporting language
- whether a change here should also land in one or more companion repos
Record any follow-up as issues or pull requests in the affected repository so
cross-document drift is tracked explicitly. Use the Series review issue form
in this repository to capture each quarterly or pre-release review pass.
Pull requests should:
- describe what changed and why
- mention any source or command verification performed
- note whether metrics, changelog entries, or generated artifacts changed
- call out any cross-document follow-up needed in the benchmark, hardening guide, or style guide repos
Keep changes focused. Separate template safety fixes from unrelated repository or workflow changes when practical.