
Copy-paste snippets for blocks, block themes, security, performance, Tailwind CSS, PHP and React. New snippets every Monday, Wednesday and Friday, each one run in a real WordPress before it is published.

Disable comments in WordPress completely without a plugin: close forms, hide old comments, empty comment blocks and remove the admin screens.

Disable WordPress automatic updates for major core versions, plugins and themes, while minor security releases keep installing on their own.

Add a product_cat_{slug} class to the body tag on WooCommerce single product pages in WordPress, so you can style each product category with CSS.

Show the post ID in a sortable column on every WordPress admin list, posts, pages and custom post types, with one Admin only snippet.

Disable the theme and plugin file editor in WordPress with DISALLOW_FILE_EDIT, plus a capability filter that holds even if wp-config says otherwise.

Turn off the Gutenberg block editor for chosen post types in WordPress and use the classic editor for them, while posts and pages keep blocks.

Disable WordPress native lazy loading for images and iframes with one filter, or limit it to post content when only some images are affected.

Stop the WordPress emails sent after successful automatic core, plugin and theme updates, but still get an email when an update fails.

Stop posts from being published until a category and one of its subcategories are checked. Save Draft keeps working, and the editor shows the error.

Why get_transient() keeps missing in WordPress and your expensive code runs on every load, plus a helper that caches false, empty and long-keyed values.

A custom WP-CLI command that reads every admin account straight from the database and flags admins hidden from the Users screen.

Add an Export CSV button to any WordPress post type list screen, with nonce and capability checks, terms, meta and formula-injection protection.
3rd party plugins actions admin archive block-themes block editor Blocks block styles block theme build core CSS custom post types development full site editing gutenberg hook hooks Image img javascript load styles media Must Have npm Oxygen performance php plugins react rest api scripts organizer security settings api single product tailwind Taxonomy theme.json Tips updates WooCommerce wordpress wp-cli wp-cron WP Admin