Adding high performance keys to MySQL tables to speed up WordPress - Adding high-performance keys to MySQL tables to speed up WordPress 🧑🏿‍🚀

Adding high-performance keys to MySQL tables to speed up WordPress 🧑🏿‍🚀

wp_postmeta table should be the biggest table in your database, if not, there is a problem. Read wp_actionscheduler_actions & wp_actionscheduler_logs tables When you install WordPress for the first time, tables are created in the database, for example for the wp_postmeta table: the problem? solution: On an existing tables, We can add high-performance keys that match … Read full article →

SVN Checkout a WordPress plugin - SVN Checkout a WordPress plugin

SVN Checkout a WordPress plugin

SVN, or Subversion, is a version control system similar to Git that can be used via the command line, or one of numerous GUI applications, such as Tortoise SVN or SmartSVN. In this guide, I will use TortoiseSVN software to checkout a WordPress plugin. Step 1. First, download and install TortoiseSVN software: https://tortoisesvn.net/downloads.html Step 2. After installation, you … Read full article →

2 - Use mysql2date  to convert date string obtained from the database into a readable date

Use mysql2date to convert date string obtained from the database into a readable date

Instruction: Parameter PARAMETER TYPE DESCRIPTION DEFAULT REQUIRED $format string Output can be PHP date format or Unix timestamp. no yes $date string mysql2date() only recognizes “Ymd H:i:s” format, so the original timestamp string needs to be converted to this format. no yes $translate boolean If true, the specified date and format string will be passed … Read full article →

How to get free WordPress hosting - How to get free WordPress hosting?

How to get free WordPress hosting?

Back in 2010 when I was starting my web development journey, having a website was expensive, especially on a high-school student budget. I had plenty of dumb ideas, and no money to realize all of them (thank God 🙏). So I was looking for shortcuts to save on a domain name and hosting. I will … Read full article →

Disable WordPress Comments - Disable WordPress Comments

Disable WordPress Comments

There are several ways to disable comments in WordPress: From the WordPress administration panel This will disable comments on all new posts and pages. If you want to disable comments on existing posts and pages, you can do so by editing each post or page and unchecking the “Allow comments” option. Using a plugin There … Read full article →

Bulk Delete Millions of WooCommerce Products using WP CLI - 🗑️ Bulk Delete WooCommerce Products with WP CLI

🗑️ Bulk Delete WooCommerce Products with WP CLI

Here are a few useful one-liners that you can use to quickly remove all WooCommerce products from your store. Another approach: PRO TIP:If you are considering deleting items in WooCommerce, please be aware that this action cannot be undone. Once you have deleted an item, it will be permanently gone from your store. Before taking … Read full article →

no referer Error on LiteSpeed Cache Purge - no referer Error on LiteSpeed Cache Purge

no referer Error on LiteSpeed Cache Purge

When purging cache from the LiteSpeed Caching plugin the error no referer is shown and purging is not working. This error is caused by the Security Headers Referrer-Policy setting “no referer” on the server (or Cloudflare). The no-referrer value instructs the browser to never send the referer header with requests that are made from your site. This … Read full article →

wp gatsby netlify - WordPress to Gatsby on netlify ☄️

WordPress to Gatsby on netlify ☄️

When migrating from WordPress CMS to another CMS there are a couple of ways to easily export all your posts and media files: In this guide we will be using the WPGraphQL plugin and Netlify to deploy a Gatsby website. Step 1. Fork the gatsbyjs/gatsby-starter-wordpress-blog repo on Github Step 2. Edit the gatsby-config.js file and … Read full article →