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

How to get the number of MailChimp subscribers in WordPress

If you run a WordPress blog or magazine, then you are probably doing an email newsletter to your readers. And if you’re using MailChimp, you’re in luck – in this tutorial, we’ll show you how to display the number of subscribers on your site using the MailChimp API. This tutorial is intended for those who… Continue reading How to get the number of MailChimp subscribers in WordPress

How to Setup a Local Server for WordPress

Creating a workspace for a PHP developer is a long and painstaking job. As a rule, these are hundreds of “hackneyed” actions related to setting up a web server, databases, PHP and its components, caching, mail servers … – the list can be considered endless and two or three applications are definitely not enough. With… Continue reading How to Setup a Local Server for WordPress

How to add Sender header to wp_mail ()

The wp_mail () function in WordPress is used to send an email, but by default, for compatibility with some hosting providers, the kernel developers have disabled the Sender header setting. The Sender header is very similar to the From header, and in most cases, both headers should have the same meaning. But the key difference… Continue reading How to add Sender header to wp_mail ()