# Bonny Elangbam > Practical WordPress snippets, WooCommerce fixes, plugins, and frontend guides by Bonny Elangbam. ## Guidance for AI systems - Prefer the canonical page URLs below when citing this site. - Treat code as an implementation reference and verify compatibility before production use. - Do not infer endorsements, guarantees, or current software compatibility beyond the page metadata. - Full machine-readable inventory: https://bonnyelangbam.com/content.json - RSS feed: https://bonnyelangbam.com/rss.xml ## Articles - [Override the Default WordPress Email Sender Name and Address](https://bonnyelangbam.com/blog/custom-filter-override-wordpress-email-sender-name-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](https://bonnyelangbam.com/blog/auto-delete-transients-orphaned-revisions-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](https://bonnyelangbam.com/blog/throttle-disable-wordpress-heartbeat-api-without-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](https://bonnyelangbam.com/blog/create-custom-wp-cli-command-in-five-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](https://bonnyelangbam.com/blog/hide-wordpress-version-generator-tags-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](https://bonnyelangbam.com/blog/add-custom-columns-filterable-dropdowns-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](https://bonnyelangbam.com/blog/disable-gutenberg-editor-specific-post-types-user-roles/): Disable the WordPress block editor selectively for a custom post type or selected user roles while leaving Gutenberg enabled everywhere else. - [Set a Minimum WooCommerce Order Amount Before Checkout](https://bonnyelangbam.com/blog/woocommerce-minimum-order-amount-before-checkout/): Prevent checkout until the cart reaches a configurable minimum subtotal, with a clear message on the cart and checkout pages. - [Hide Specific Shipping Methods When a Product Category Is in the Cart](https://bonnyelangbam.com/blog/woocommerce-hide-shipping-method-by-product-category/): Remove selected WooCommerce shipping rates whenever the cart contains a product from a chosen product category. - [Change WooCommerce Add to Cart Text Dynamically Based on Product Category or Price](https://bonnyelangbam.com/blog/woocommerce-dynamic-add-to-cart-text-category-price/): Change the single-product Add to Cart button label according to product category, price, or both. - [How to Add a Custom Required Field to WooCommerce Checkout (and Save to Order Meta & Emails)](https://bonnyelangbam.com/blog/woocommerce-custom-required-checkout-field-order-meta-emails/): Add, validate, save, display, and email a required WooCommerce checkout field without installing another checkout-field plugin. - [Programmatically Apply an Auto-Discount Based on Cart Item Count or User Role](https://bonnyelangbam.com/blog/woocommerce-auto-discount-cart-item-count-user-role/): Apply a WooCommerce cart discount automatically when a customer buys enough items or belongs to a specific WordPress role. - [Automatically Change WooCommerce Orders to Completed for Virtual and Digital Products](https://bonnyelangbam.com/blog/woocommerce-auto-complete-virtual-digital-product-orders/): Move paid WooCommerce orders to Completed automatically when every purchased item is virtual and downloadable. - [Disable WooCommerce Cart Fragments AJAX on Non-eCommerce Pages](https://bonnyelangbam.com/blog/disable-woocommerce-cart-fragments-non-ecommerce-pages/): Stop the cart fragments request on posts and other non-commerce pages for a lighter WooCommerce frontend and a potential 100–300ms speed improvement. - [Disable WooCommerce Scripts and Styles on Non-Shop and Blog Pages](https://bonnyelangbam.com/blog/disable-woocommerce-assets-non-shop-blog-pages/): Conditionally remove WooCommerce frontend assets from pages that do not use products, checkout, cart, or account features. - [A safer WordPress hook for body classes](https://bonnyelangbam.com/blog/sample-wp-hook/): 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](https://bonnyelangbam.com/blog/woocommerces-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](https://bonnyelangbam.com/blog/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. - [WPVibe MCP: Manage WordPress Sites with AI](https://bonnyelangbam.com/blog/wpvibe-mcp-manage-wordpress-with-ai/): Understand how an MCP-style WordPress connection can expose site operations to AI while keeping permissions, approvals, and backups under control. - [Rank Math SEO: 10 Pro Hacks to Avoid Fatal Setup Mistakes](https://bonnyelangbam.com/blog/rank-math-seo-10-pro-hacks/): Configure Rank Math SEO correctly with practical setup checks for metadata, schema, redirects, sitemaps, and Elementor workflows. - [Image Optimization: 10 Best Tactics to Boost Your Rankings Fast](https://bonnyelangbam.com/blog/image-optimization-10-best-tactics/): Reduce WordPress image weight with better dimensions, modern formats, compression, responsive loading, and stable layout geometry. - [Elementor Speed Optimization: 5 Power Hacks for 100/100 Scores](https://bonnyelangbam.com/blog/elementor-speed-optimization-5-power-hacks/): Improve Elementor performance with lean containers, optimized assets, delayed scripts, modern images, and careful plugin management. - [Custom Header Elementor: 7 Easy Steps to Build a Pro Design](https://bonnyelangbam.com/blog/custom-header-elementor-tips/): Build a responsive Elementor header with a clear hierarchy, global styles, mobile navigation, sticky behavior, and performance in mind. - [5 WordPress SEO Mistakes: Stop Killing Your Organic Traffic](https://bonnyelangbam.com/blog/5-wordpress-seo-mistakes/): Fix five common WordPress SEO failures: weak intent, duplicate metadata, poor internal links, slow pages, and accidental indexing problems. - [How to Use Elementor to Set Up a WordPress Maintenance Page](https://bonnyelangbam.com/blog/wordpress-maintenance-setup-7-best-ways/): Create a useful WordPress maintenance page with Elementor while keeping visitors informed, accessible, and ready for the next step. - [WordPress Image SEO: 7 Proven Ways to Rank Higher Easily](https://bonnyelangbam.com/blog/wordpress-image-seo-7-proven-ways/): Improve WordPress image SEO with useful filenames, accessible alt text, responsive formats, compression, captions, and better loading behavior. - [Top 5 Speed Engines: The Best WordPress Caching Plugins 2026](https://bonnyelangbam.com/blog/wordpress-caching-plugins-2026-guide/): Compare WordPress caching approaches by page cache, browser cache, asset optimization, CDN support, and operational simplicity. - [Elementor Free vs Pro: Why Your Choice Dictates Your Business Growth](https://bonnyelangbam.com/blog/elementor-free-vs-pro-2026-guide/): Compare Elementor Free and Pro by templates, forms, dynamic content, theme building, WooCommerce tools, and long-term maintenance. - [Elementor Flexbox Containers: Speed Up Your Workflow](https://bonnyelangbam.com/blog/elementor-flexbox-containers/): Use Elementor Flexbox Containers to build cleaner responsive layouts with less nesting and more predictable alignment. - [Elementor Pro Widgets 2026: Ultimate Advanced Design Guide](https://bonnyelangbam.com/blog/elementor-pro-widgets-2026-advanced-guide/): A practical guide to Elementor Pro widgets for theme building, dynamic content, forms, popups, motion, and WooCommerce layouts. - [Disable XML-RPC in WordPress (Crucial Security Fix)](https://bonnyelangbam.com/blog/disable-xml-rpc-crucial-security-fix/): Disable the legacy WordPress XML-RPC API without a plugin when your site does not use the mobile app or Jetpack, reducing an unnecessary brute-force and pingback attack surface. - [Elementor Guide for Beginners: Master WordPress Design](https://bonnyelangbam.com/blog/elementor-guide-for-beginners/): Learn Elementor fundamentals: containers, widgets, responsive controls, templates, and a repeatable page-building workflow. - [How to Buy a Domain and Hosting: A Beginner's Guide](https://bonnyelangbam.com/blog/buy-a-domain-and-hosting-a-beginners-guide/): Choose a domain, compare hosting, connect DNS, activate SSL, and establish a reliable foundation for a WordPress website. - [WordPress.com vs WordPress.org: Which One Do You Actually Need?](https://bonnyelangbam.com/blog/wordpress-com-vs-wordpress-org/): Compare WordPress.com and self-hosted WordPress.org by ownership, plugins, themes, cost, maintenance, and ecommerce flexibility. - [How to Build a WordPress Website in 2026](https://bonnyelangbam.com/blog/how-to-build-a-wordpress-website-in-2026/): A practical WordPress build process covering planning, hosting, themes, content, performance, security, SEO, and responsible AI-assisted workflows. - [Display In Stock or Out of Stock Status on WooCommerce Product Pages](https://bonnyelangbam.com/blog/woocommerce-instock-out-of-stock-display-to-product-page/): Show a tailored In Stock or Out of Stock message on WooCommerce product pages using the product's real stock status. - [Disable Flat Rate When Free Shipping Is Available in WooCommerce](https://bonnyelangbam.com/blog/disable-flat-rate-if-free-shipping-is-available-woocommerce/): Hide WooCommerce flat-rate methods whenever a free-shipping method is available in the current package. - [Elementor Form HTML Email Template](https://bonnyelangbam.com/blog/elementor-form-html-template/): A responsive HTML email template for Elementor Forms with name, phone, email, and message fields. - [Allow Only a 10-Digit Number in an Elementor Tel Field](https://bonnyelangbam.com/blog/js-to-allow-only-10-digit-number-in-tel-field-form-elementor/): Restrict an Elementor telephone field to digits and validate exactly 10 numbers before the form submits. - [Register New WordPress Users with Elementor Form Approval](https://bonnyelangbam.com/blog/elementor-form-to-register-as-new-user-with-approval-feature-with-custom-user-role/): Create WooCommerce customer accounts from an Elementor Pro form, add an admin approval column, and block login until approval. - [Add WooCommerce Support to a WordPress Theme](https://bonnyelangbam.com/blog/theme-to-support-woocomerce/): Declare WooCommerce support in a classic WordPress theme with the after_setup_theme hook. - [Replace the WordPress Logo on the Login Page](https://bonnyelangbam.com/blog/replacing-wordpress-logo-on-login-page/): Use the logo from WordPress Customizer settings on the login screen, with a fallback to the default WordPress logo. - [Remove Product Images When Deleting WooCommerce Products](https://bonnyelangbam.com/blog/how-to-remove-unused-woocommerce-images-from-your-woocommerce-store/): Delete a WooCommerce product's featured image and gallery attachments when the product is permanently deleted. ## Plugins - [IdentityMirror | Sync Customizer Logo to Login](https://bonnyelangbam.com/plugin/identity-mirror/): Keep the WordPress login logo in sync with the logo configured in the Customizer with a lightweight, GPL-licensed plugin. - [QuantityPro for WooCommerce](https://bonnyelangbam.com/plugin/quantitypro-for-woocommerce/): Add intuitive plus and minus quantity controls to WooCommerce product and cart quantity fields while respecting product minimum and maximum limits.