WP CLI Tips and Tricks - WP-CLI Tips and Tricks

WP-CLI Tips and Tricks

Here are a few WP-CLI tricks and tips that might be useful: Aliases Use aliases to make commands shorter and easier to remember. You can use the –alias=<alias> flag when defining a command to specify a shorter alias for the command. For example, if you use a command wp my-command: you could define a command … Read full article →

Display the total number of WooCommerce products - Display the total number of WooCommerce products

Display the total number of WooCommerce products

To display the total number of WooCommerce products, you can use the following code snippet: <?php $products = wc_get_products(array( ‘limit’ => -1 )); echo count($products); ?> This code uses the wc_get_products() function to retrieve all published products, with no limit on the number of products returned. The count() function is then used to count the … Read full article →

Error Establishing a Redis Connection - Redis connection down? Stop the

Redis connection down? Stop the “Error Establishing a Redis Connection” crash on WordPress

If you’re running the Redis Object Cache plugin on a client site, you’ve probably seen this ugly white-screen error at some point: Error establishing a Redis connection To disable Redis, delete the object-cache.php file in the /wp-content/ directory. By default, if Redis becomes unreachable (server restart, memory limit hit, network hiccup, provider maintenance..) the plugin throws a fatal error … Read full article →

Hide your WordPress site from Google and other Search Engines - Hide your WordPress site from Google and other Search Engines

Hide your WordPress site from Google and other Search Engines

If you want to hide your WordPress site from search engines, you can use the “Discourage search engines from indexing this site” option in the “Reading Settings” page of your WordPress dashboard. To access this option, follow these steps: This will add a “noindex” directive to your site’s pages, which tells search engines not to … Read full article →

List of BEST Blogs for WordPress Developers - List of BEST WordPress Developer Blogs

List of BEST WordPress Developer Blogs

As you may have guessed from this site, I ❤️ LISTS.  I pretty much have a list for anything WordPress-related: Here is another list that was once a draft page on this blog that I used to bookmark links to interesting blogs written by other WordPress enthusiasts and developers. The list is simply updated as … Read full article →

malware types wordpress - Types of WordPress Malware Attacks and What They Do

Types of WordPress Malware Attacks and What They Do

Here are the most common types of WordPress malware attacks. Permanent malware eradication entails conducting a thorough investigation and determining the type of attack that occurred, how it occurred, and permanently closing that door. This is known as root cause analysis and vulnerability fix in the security world. 🔀 Cross-site scripting (XSS) The most regularly … Read full article →