Searching every code snippet for a specific piece of text turns up nothing, even though that exact text is confirmed to be live somewhere on the site.
When a Snippet Search Comes Up Empty, the Content Might Not Be in a Snippet at All
⚡ Quick Fix (TL;DR)
The Culprit: Content pasted directly into page content (a Custom HTML block, for instance) lives in the WordPress database itself, not in any code snippet – so a snippet-only search, or even a plugin built specifically for search-and-replace, can come back completely empty while the real matches sit untouched in the pages table.
The Fix: Search the WordPress database directly – via phpMyAdmin's own search tab, or a direct SQL query against the posts table – rather than trusting a snippet-only tool to have covered every possible location content could live.
SELECT ID, post_title, post_type, post_status
FROM wp_posts
WHERE post_content LIKE '%your-search-text%'
AND post_status = 'publish'
AND post_type IN ('page', 'post')Tagged in :
More from the field
Bisect to an Empty Baseline Before Trusting Any Single Theory
.
Multiple plausible-sounding theories for a bug each turned out to be wrong when actually tested – time was spent building fixes…
A Security Dashboard’s Activity Log Can Lag a Full Day Behind Real Time
.
Trying to check a security tool’s activity log for an event that had just happened showed nothing at all.