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 →

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 →

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 →

Installation failed Could not create directory. WPXSS blog - Installation failed: Could not create directory.

Installation failed: Could not create directory.

When installing new plugins the error is displayed: Installation failed: Could not create directory. How to fix the Installation failed: Could not create directory. error OPTION 1: Change File permissions This error usually occurs because WordPress doesn’t have writing permissions for the folder. To make sure this is the case, navigate to Tools > Site … Read full article →

How to Show Different Themes to Logged in Users in WordPress - How to Show Different Themes to Logged-in Users in WordPress

How to Show Different Themes to Logged-in Users in WordPress

In this example, we’ll use the is_user_logged_in() to display a different theme on our website for visitors: if(is_user_logged_in()) { function wpxss_set_my_custom_theme() { //replace your theme name here return ‘your-theme-name’; } add_filter( ‘template’, ‘wpxss_set_my_custom_theme’ ); add_filter( ‘stylesheet’, ‘wpxss_set_my_custom_theme’ ); } else { // leave the default theme active for visitors } The template and stylesheet filters are responsible to select the activated … 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 →

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 →

wordpress php usage statistics - WordPress PHP Version Usage Statistics UPDATED

WordPress PHP Version Usage Statistics UPDATED

PHP versions prior to PHP 7.4 are end-of-life (EOL), meaning they no longer receive updates. Because of this, your site may be exposed to security vulnerabilities. It’s not just the security implications though of running an older PHP version, it’s the performance impact as well. According to PHPBenchmarks, PHP 5.6 is at least 48% slower than … Read full article →