WordPress

WordPress is a free content management system (CMS) written in PHP and paired with a MySQL or MariaDB database. Currently, WordPress is used by more than 60 million websites.

www.wordpress.org

Connection refused PHP error in WordPress

While troubleshooting a newish WordPress installation running on LSWS and cPanel I’ve noticed a pretty big error_log file with the following lines: [06-Jun-2021 18:33:14 UTC] Connection refused [06-Jun-2021 18:35:15 UTC] Connection...

Wordpress background web design image in Backgrounds and Textures category at pixy.org

Find older WordPress versions

This one-liner will help to find all WordPress installations running a specific version, where the current latest is 5.6 locate wp-includes/version.php | xargs grep "wp_version = " | grep -v " = '5-6'" A more efficient shell script that will scan...

Business photo created by senivpetro - www.freepik.com

Put WordPress in maintenance mode without any plugin

If for whatever reason you need to prevent your visitors from seeing a broken version of the site during maintenance, and to give them a heads up on the updates, WordPress has an embedded feature for handling maintenance mode that will automatically...

Three Column Screen Layout WordPress Plugin 🔴 Exploit

Another website got hacked and the owner noticed weird chinese characters in search results for his website. weird chinese characters The index.php file contained the following code: Initially, the point of entry for this malicious code was a plugin...

Restrict 🚫 wp-admin to specific IP address

To restrict access to the WordPress admin area (wp-admin) create a new file .htaccess inside your wp-admin folder and put the following code snippet: order deny, allow allow from 123.456.7.8 deny from all Replace 123.456.7.8 with your IP. You can...

WordPress debug

WordPress troubleshooting 101:  add the following to wp-config.php to enable displaying errors. define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', true ); @ini_set( 'display_errors', 1 ); define(...

How to 🔄 re-install WordPress

Here is how to re-install WordPress in under 5 minutes! From the current WordPress installation delete everything except the wp-content folder and the wp-config.php file. Download the latest WordPress version from WordPress.org Go to your...

Remove jQuery from WordPress ✔️

To completely remove jQuery from your WordPress website add the following code in the functions.php file in your active theme folder: /** * Remove jQuery from front-end*/ function my_init() { if (!is_admin()) { wp_deregister_script('jquery');...