Category archive / wordpress
Wordpress articles.
Browse 35 wordpress articles, guides, and code snippets by Bonny Elangbam.
← View all notesWordpress notes
Override the Default WordPress Email Sender Name and Address
Set a consistent WordPress email sender name and address with filters, while keeping the address aligned with the site's domain.
Auto-Delete Transient Rows and Orphaned Revisions via WP-Cron
Schedule a bounded WordPress maintenance task that removes expired transients and revisions whose parent post no longer exists.
Throttle or Disable the WordPress Heartbeat API Without a Plugin
Reduce WordPress Heartbeat requests by changing the interval or disabling the frontend heartbeat script while keeping the editor working.
How to Create a Custom WP-CLI Command in 5 Minutes
Register a small, namespaced WP-CLI command that reports and optionally deletes old draft posts.
Completely Hide the WordPress Version Number and Generator Tags for Security
Remove WordPress version output from generator tags, RSS, scripts, and styles without installing a security plugin.
Add Custom Columns and Filterable Dropdowns to WordPress Admin Post Lists
Add an ISBN column and a taxonomy dropdown filter to a WordPress custom post type in the admin list table.
Disable the Gutenberg Editor for Specific Custom Post Types or User Roles
Disable the WordPress block editor selectively for a custom post type or selected user roles while leaving Gutenberg enabled everywhere else.
A safer WordPress hook for body classes
Add a useful context class to the body element without coupling your theme to a page template.
WooCommerce's default variation dropdowns into selectable radio buttons
Replace WooCommerce variation dropdowns with selectable radio-button pills while keeping the native selects and variation logic intact.
WordPress + AI in 2026: How to Use AI Tools to Run Your Entire Site
Use AI responsibly across WordPress content, SEO, support, maintenance, and operations without surrendering editorial or security control.