This repository contains a collection of WordPress code snippets that I frequently use in my development projects. These snippets are designed to solve common challenges, improve workflow, and customize WordPress functionalities without relying on heavy plugins. Whether you're looking to modify theme files, or plugin files, enhance performance, or streamline your WooCommerce store, this collection provides practical and easy-to-implement solutions.
The list is structured into three sections - links to useful resources and articles, code snippets for a wide range of scenarios, themes, and plugins you may encounter in your daily work, and a list of trusted, non-commercial plugins that I recommend using (no page builders or similar bad plugins are listed).
-
- Admin
- Admin Bar
- Author
- BBPress Forums
- Block Editor
- Breadcrumbs
- BuddyPress
- Classic Editor
- Comments
- Content Management
- Dashboard
- Dashicons
- Editor
- Embeds
- Images
- Jetpack
- Media Library
- Multilingual
- Optimization
- Permalinks
- Post Content
- Post Excerpt
- Post Revisions
- REST API
- RSS Feeds
- Security
- SEO
- TablePress
- Trash
- Updates
- User Experience
- User Profile
- Web Accessibility
- Widgets
- WooCommerce
- WordPress Emails
- WordPress Login
- WordPress Search
- Yoast SEO
- How to Change or Remove ‘Howdy Admin’ in WordPress Admin Bar?
- How to Remove Welcome Panel From WordPress Admin Dashboard?
- Add Post ID to Posts and Pages Admin Columns in WordPress
- How to Remove the Comments Column from Pages in WordPress Admin?
- How to Disable BuddyPress Admin Menu Bar in WordPress?
- How to Disable the Admin Bar For All Users Except Administrators in WordPress?
- How to Disable the Admin Bar in WordPress For All Users?
- How to Change or Remove ‘Howdy Admin’ in WordPress Admin Bar?
- How to Remove Comments from WordPress Admin Bar?
- How to Disable URL Links in WordPress Comments?
- How to Link Twitter Usernames in WordPress Posts & Comments Automatically?
- How to Remove Comments from WordPress Admin Bar?
- How to Limit Comment Length in WordPress?
- How to Remove the Comments Column from Pages in WordPress Admin?
- How to Remove Website URL From Comment Author’s Name?
- How to Remove Website URL Field from WordPress Comment Form?
- How to Disable Auto WordPress Responsive Images?
- How to Stop WordPress from Compressing JPEG Images?
- How to Easily Display Course ID in LearnDash Admin Panel?
- How to Display Group Name in LearnDash Courses Admin Panel?
- How to Stop WordPress from Compressing JPEG Images?
- How to Rename and Sanitize the Filenames Uploaded to WordPress Media Library?
- How to Allow EPUB File Uploads in WordPress?
- How to Allow PDF File Uploads in WordPress?
- How to Allow ZIP File Uploads in WordPress?
- How to Allow DOC File Uploads in WordPress?
- How to Allow SVG Uploads in WordPress?
- How to Allow Contributors to Upload Images?
- How to Remove jQuery Migrate JS from a WordPress Website?
- How to Disable Dashicons on the Frontend in WordPress?
- How to Disable All Embeds in WordPress?
- How to Disable the ‘wlwmanifest’ Link in WordPress?
- How to Remove Jetpack Unused CSS From WordPress Website?
- How to Disable Post Revisions in WordPress?
- How to Disable Emojis in WordPress?
- How To Limit WordPress Post Revisions?
- How to Link Twitter Usernames in WordPress Posts & Comments Automatically?
- How to Open All WordPress Post Links in New Tab?
- How to Add a “Read More” link to the end of the excerpt?
- How to Add 3 Dots to the End of the Post Excerpt in WordPress?
- How to Change Post Excerpt Length in WordPress?
- How to Disable All Embeds in WordPress?
- How to Disable the ‘wlwmanifest’ Link in WordPress?
- How to Disable JSON REST API in WordPress?
- How to Hide Login Errors in WordPress?
- How to Remove Jetpack Unused CSS From WordPress Website?
- How to Disable Theme & Plugin Editors from WordPress Admin Panel?
- How to Disable XML-RPC in WordPress?
- How to Disable Login With Username in WordPress?
- How to Disable Login With Email Address in WordPress?
- How to Disable File Editing From WordPress Admin Dashboard via wp-config.php?
- How to Hide/Remove WordPress Version Number?
- How to Disable TablePress Resources on the Homepage?
- How to Remove Edit Link From TablePress Tables?
- How to Hide TablePress Tables in WordPress Search Results?
- How to Disable Automatic Updates in WordPress?
- How to Disable ‘Automatic Updates’ Emails in WordPress?
- How to Disable Widget Blocks in WordPress (Restore Classic Widgets)?
- How to Enable Shortcodes in Text Widget in WordPress?
- How to Hide WooCommerce Product Reviews Tab Until Purchase?
- Hide All Shipping Methods Except “Free Shipping” and “Local Pickup” in WooCommerce
- Remove ‘Additional Information’ from the WooCommerce Checkout Page
- Hide Other Shipping Methods when “Free Shipping” is Available in WooCommerce
- How to Remove or Rename the “Description” Data Tab in WooCommerce?
- How to Remove or Rename the “Reviews” Data Tab in WooCommerce?
- How to Remove / Rename the “Additional Information” Data Tab in WooCommerce?
- How to Change the Default State & Country on WooCommerce Checkout?
- How to Autocomplete WooCommerce Orders in WordPress? (Without Plugin)
- How To Change the “Add To Cart” Button Text in WooCommerce?
- How to Disable Local Taxes when using Local Pickup in WooCommerce?
- How to Remove/Disable Product Reviews in WooCommerce?
- How to Remove WooCommerce Breadcrumbs in WordPress?
- How to Add a Custom Currency Symbol in WooCommerce?
- How to Reorder Data Tabs in WooCommerce Single Product Page?
- How to Rename Data Tabs in WooCommerce Single Product Page?
- How to Remove Data Tabs in WooCommerce Single Product Page?
- How to Remove Zero Decimals from WooCommerce Product Price?
- How to Limit Product Quantity to 1 For All WooCommerce Products?
- How to Disable Repeat Purchase for a WooCommerce Product?
- How to Change WooCommerce default user role to “Subscriber”?
- How to Disable ‘Automatic Updates’ Emails in WordPress?
- How to Change Sender Name & Email in WordPress Emails?
- Highlight Keywords in WordPress Search Results within the_excerpt and the_title
- How to Hide TablePress Tables in WordPress Search Results?
- How to Exclude Taxonomies from Yoast SEO Sitemap?
- How to Exclude Post Type(s) from Yoast SEO Sitemap?
- How to Include Empty Taxonomies in Yoast SEO Sitemap.xml?
- How to Remove Yoast SEO Admin Columns?