Options performance in WordPress

The options table in WordPress contains all the settings for your website, themes, and plugins. It can store both simple checkboxes (yes/no), and larger data, sometimes even logs. The options API in WordPress is very simple and can be summarized in two lines: update_option( ‘foo’, ‘bar’ ); // store an option called foo $foo =… Continue reading Options performance in WordPress

How to Search and Replace in WordPress database

A few days ago, an update to the popular WP-CLI utility was released, and one of the most interesting changes is flag support –regexin the command search-replace. WP-CLI is a system utility for managing WordPress sites from the command line. Many hosting providers have long been installing it for their customers. It allows you to… Continue reading How to Search and Replace in WordPress database