exclude wp - Exclude WordPress cache & backup folders  from Softaculous backup

Exclude WordPress cache & backup folders from Softaculous backup

If you are using Softaculous backups you may notice that Softaculous backups also the cache folders (wp-content/cache and wp-content/litespeed) and backups created by WordPress backup plugins (wp-content/updraft & wp-content/ai1wm-backup). This significantly increases the size of Softaculous backup files. To exclude these folders from Softaculous backups SSH into your server and navigate to the following path: Copy … 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 →

Get All WordPress Constants - Get All WordPress Constants

Get All WordPress Constants

PHP has a built-in function get_defined_constants that returns an array with the names of all the constants and their values. Because WordPress is built in PHP, We can use this function to get all WordPress constants. ⚠️ Use this snippet with caution, as the code will display sensitive information including your database username and password … Read full article →

wpcli autocomplete - Setup tab completions for WP-CLI

Setup tab completions for WP-CLI

Tab completion is a useful time-saving feature of command line interfaces. To enable tab completion for WP-CLI We need to edit the ~/.bash_profile file. Step 1. In your home directory download WP-CLI tab completion file Step 2. Edit your ~/.bash_profile and add the following line: source ~/wp-completion.bash Save and exit. Step 3. Source the profile … Read full article →

How to remove meta generator tag from WordPress - How to remove meta generator tag from WordPress

How to remove meta generator tag from WordPress

WordPress has an HTML meta generation tag that shows that your website is running WordPress and which version exactly. If you right-click on this page and choose View Source, you can find this tag by searching for “generator” in the source code. You should see something similar to: <meta name=”generator” content=”WordPress 6.0.3″ /> This code … Read full article →