PVTL Site Search
Admin-only content search tool to find pages containing specific terms
★ 0stars
75composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/pvtl/pvtl-site-search/archive/refs/heads/main.zipAlso on Packagist as pvtl/pvtl-site-search:
composer require pvtl/pvtl-site-searchFrom the readme
PVTL Site Search
WordPress plugin that adds an admin-only tool to find published posts and pages whose body content contains a given search term. Useful for audits, migrations, or locating copy across custom post types without opening each item in the editor.
Features
- Admin menu — “Site Search” appears under the main admin menu (dashicon: search).
- Capability — Only users who can manageoptions (typically Administrators) can access the screen.
- Scope — All public post types, poststatus = publish, via posttype = any.
- Matching — Case-insensitive search in postcontent only (not titles or meta).
- Results — Permalink, post type, ID, occurrence count, contextual excerpts (~150 chars before/after each match) with the term highlighted, plus a textarea of plain URLs for copying.
Requirements
- WordPress 5.0 or higher (uses standard APIs; not formally version-gated in code).
- PHP 8.0 or higher (see composer.json).
Performance note
Each search loads all published posts into memory (postsperpage = -1) and scans content in PHP. On very large sites this can be slow or hit memory limits; consider running during off-peak hours or on a staging copy.
Installation
Composer (e.g. Bedro