jbrathz/jPlugin-Search-and-OCR — reverse-engineered prompt
Reverse engineered prompt
Build me a WordPress plugin called jSearch for searching website content and PDF files. I want visitors to use a shortcode search box that can search posts, pages, selected custom post types, and indexed PDF text, with highlighted keywords, limits, thumbnails if available, and a choice to search only PDFs or everything.
In the admin area, make a dashboard and settings pages where I can choose searchable post types, set an OCR API, clear cache, see stats, and run PDF processing manually. It should support PDFs from WordPress Media, Google Drive file, and Google Drive folder. Digital PDFs should work with a built in parser, while scanned PDFs should use the OCR API. Processing needs progress tracking, duplicate skipping, batches of 5 files, and buttons to pause, continue, or cancel jobs.
Also add Auto OCR when posts are saved, REST endpoints for search and stats, simple rate limiting, uninstall cleanup, and Thai language ready text. Look up current WordPress plugin docs if needed.
Want more depth? Deep Reverse