Install WP CLI in cPanel with CageFS - Install WP-CLI in cPanel with CageFS

Install WP-CLI in cPanel with CageFS

In this guide, I talked about adding WP-CLI to your system, but if you use cPanel with CloudLinux, you also need to include it in CageFS so that all users can access the wp command. First, download the WP-CLI command inside /usr/local/bin Add WP-CLI path to CageFS: and inside add: save the file, then update … Read full article →

WordPress error Minified Redux error #7

⚠️ WordPress error: Minified Redux error #7

After upgrading WP to 6.0 the Edit post page is blank with the following errors in Chrome dev tools: I’ve disabled all plugins and reverted to the default 2022 theme, but the problem continues. After examining the files in question, I discovered that they were being utilized by the Gutenberg editor, so I temporarily disabled … 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 →

Disable WordPress comments based on User Language - Disable WordPress comments based on User Language

Disable WordPress comments based on User Language

If you want to disable comments in WordPress based on the user’s language, you can do so by using the following steps: Step 1. Install and activate the “GeoIP Detection” plugin. This plugin allows you to detect the user’s language based on their IP address. Step 2. Add the following code to your theme’s functions.php … Read full article →

wp package install - Install a WP-CLI Package

Install a WP-CLI Package

Packages can be installed to add functionality to WP-CLI, for example wp-cli/wp-super-cache-cli package will add functions for managing WP Super Cache plugin from the terminal. Here is a list of My favourite packages from the wp-cli/package-index: billerickson/wp-cli-plugin-install-missing install any plugins that are “active” but not installed binarygary/db-checkpoint create quick db snapshots for development purposes jaywood/jw-wpcli-random-posts … Read full article →

MySQL Process List WordPress plugin - View current MySQL Processes in WordPress

View current MySQL Processes in WordPress

MySQL Process List is used to display currently active MySQL connections. It can be useful to view current queries, detect sleep connections, and if some connection limits are reached. If on your hosting server, you have access to the terminal, you can u list MySQL processes using the command: Here is a simple WordPress plugin … Read full article →

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 →

An unexpected error occurred. Something may be wrong with WordPress.org or this servers configuration. If you continue to have problems please try the support forums. - An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.

An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.

Error: “An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.” indicates a connection problem between your website or hosting and the WordPress.org website. The error can be seen on the Plugin > Add New page To learn more about … Read full article →

1 - 💡 How to use wp_delete_post to delete Posts or Pages

💡 How to use wp_delete_post to delete Posts or Pages

wp_delete_post function allows us to permanently delete posts, pages, attachments. When a post is deleted, all the associated content will also be deleted, this includes the comments, custom fields, and category entries. Instructions Parameter PARAMETER TYPE DESCRIPTION DEFAULT REQUIRED $postid intiger article ID 0 no $force_delete boolean skip recycle bin and delete permanently false no … Read full article →

How to Identify if My WordPress Website is Hacked - How to Identify if My WordPress Website is Hacked?

How to Identify if My WordPress Website is Hacked?

This is one of the most-asked questions that I get emailed from people that read some posts from my Types of WordPress Malware Attacks and What They Do series. 99% of the time website owners are the last ones to find out that their WordPress websites are hacked, after visitors, Google, website scanners, and their … Read full article →