- First WP Version Used
- 3.x
- Birthday
- October 26
- Joined WP.org
- September 2019
- Joined WPFolks
- May 2026
About
Full-Stack Engineer focused on building clean, practical, and production-ready tools for WordPress. I enjoy creating block themes, Gutenberg blocks, plugins, and developer-focused utilities that solve real problems for site builders, agencies, and the open-source community.
Photos on WordPress.org
@jainilnagarSnippets
Per-Post-Type Revision Limits
0 upvotes · 4 viewsReduces database bloat by setting different revision limits based on post type instead of applying a static global limit in…
Add descriptions to specific shipping methods
1 upvotes · 19 viewsAdds a description to a specific shipping method on the checkout page.
Audit All Active Plugins – Version, Update Status, Vulnerability Check
1 upvotes · 12 viewsA complete plugin audit in one command sequence. Shows the installed version, the latest available version, and the update status.…
Delete All Post Revisions from the Database
2 upvotes · 14 viewsRevisions silently bloat the database on content-heavy sites. Safe to run – revisions are regenerated automatically as you edit. Steps…
Search for a Specific Option Value in the Database
1 upvotes · 12 viewsFaster than opening phpMyAdmin when you need to check or debug a specific wp_options value. Usage: Replace the option name…
Reset Any User’s Password from the Command Line
0 upvotes · 9 viewsFastest admin recovery method when locked out and email isn’t working. Usage: Use username, email, or user ID – all…
Check WordPress and Server Info Using WP-CLI
0 upvotes · 10 viewsThe first command to run when you SSH into an unfamiliar WordPress site. wp --info is the fastest orientation command…
Lazy Load Images in Widget Areas Without a Plugin
0 upvotes · 82 viewsThis applies the loading="lazy" attribute to all images inside widget areas using a safe regex with no DOM parsing overhead.
Register a Must-Use Plugin Programmatically
0 upvotes · 56 viewsPermanently Delete Trashed Posts Older Than N Days
0 upvotes · 65 viewsWordPress core empties the trash after 30 days but only via EMPTY_TRASH_DAYS constant — which is all-or-nothing and not per-post-type.…
Rate-Limit Your Custom REST API Endpoints
4 upvotes · 80 viewsThe existing REST API snippets on the site only cover disabling or locking down the API entirely. This covers a…
