• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP Bitz

A curated collection of code snippets for WordPress

  • Home
  • About
  • Blog
  • Code Snippets

Notice: Function WP_Block_Patterns_Registry::register was called incorrectly

WordPress Development Tips · May 12, 2025

This PHP error in WordPress is a result of an invalid transient in WooCommerce. This is a known issue in WooCommerce, caused by how block …

Continue Reading

Use WP-CLI to back up your site

WordPress Development Tips · July 22, 2024

There are a lot of WordPress backup tools and plugins available, many of which are packed with features and can be a great help to …

Continue Reading

Bitnami WordPress Autoptimize cannot write to the cache directory

WordPress Development Tips · December 15, 2022

If you are running the Bitnami WordPress stack. unsing the Autoptimize plugin, and get the "Autoptimize cannot write to the cache directory" …

Continue Reading

Create and delete WordPress sites in XAMPP with a batch file

WordPress Development Tips · November 8, 2022

If you do a lot of WordPress development work, you may find it useful to have ways to quickly spin up WP sites for testing and development …

Continue Reading

How to fix “Error: MySQL Shutdown Unexpectedly” in XAMPP control panel

WordPress Development Tips · November 7, 2022

Are you having trouble with the XAMPP error: MySQL shutdown unexpectedly? This is usually the result of corrupted files or an improper …

Continue Reading

Fix missing Customizer in WordPress 6

WordPress Development Tips · October 28, 2022

If you're using WP 6+ and have a theme that supports Full Site Editing, then you probably noticed that the Customizer is gone. But what if …

Continue Reading

Use Proofy.io API to validate WordPress registrations

WordPress Development Tips · October 24, 2022

There are many uses for email deliverability validation, but one great (and simple) example is how to set up email validation on WordPress …

Continue Reading

How to Install and Run WP-CLI on Windows

WordPress Development Tips · February 4, 2022

WP-CLI is a powerful command-line tool for managing WordPress. Unfortunately, most of the information on the Internet on how to install it …

Continue Reading

Get an array of variation IDs for a WooCommerce product

WordPress Development Tips · December 22, 2021

If you need variation IDs for a WooCommerce product and you know the WC product ID, you can use one of the two following code snippets to …

Continue Reading

  • Page 1
  • Page 2
  • Go to Next Page »

Primary Sidebar

Join for free!

Get free code snippets, WordPress best practices, and practical Content Marketing advice from seasoned WordPress expert Chad Butler (butlerblog):

Recent Posts

  • Notice: Function WP_Block_Patterns_Registry::register was called incorrectly
  • Use WP-CLI to back up your site
  • Bitnami WordPress Autoptimize cannot write to the cache directory
  • Create and delete WordPress sites in XAMPP with a batch file
  • How to fix “Error: MySQL Shutdown Unexpectedly” in XAMPP control panel

Copyright © 2025 · Maker Pro on Genesis Framework · WordPress · Log in