Reinstall WordPress Core using WP-CLI
Useful WP-CLI commands that I use when cleaning hacked WordPress websites in order to reinstall WP core, all themes, and plugins from WordPress.org
Useful WP-CLI commands that I use when cleaning hacked WordPress websites in order to reinstall WP core, all themes, and plugins from WordPress.org
For high-traffic websites, I advise developing a stagging website if you make significant updates or even switch the WordPress theme entirely. But one significant problem I encountered while moving from the staging site to the live one is that all database tables are updated, which could result in financial loss if the website receives multiple … Read full article →
The error indicates that a WordPress plugin or theme is requesting the “wp_filesize” function but the WordPress core is either corrupted or outdated and does not have that function yet. Uncaught Error: Call to undefined function “wp_filesize” in /wp-admin/includes/image.php:249 WordPress 6.0 introduced the wp_filesize() function which should be used in favor of PHP’s filesize(). If … Read full article →
To check the current WordPress file upload limit, navigate to WordPress dashboard, click Media -> Add, and the upload limit will be displayed on the bottom. And the second method, edit your theme’s functions.php file and add the following
Here are five different methods to create a new WordPress Admin user. In all of the examples below I will use the following username/password combination, so make sure to change it before running any of the commands: username123 change username123 with your username password123 change password123 with your password [email protected] change [email protected] with your email … Read full article →
In this post, I will discuss the most realistic phishing popup that I’ve seen in years. These popups appear only on WordPress websites that use Cloudflare and can easily be mistaken with the original Cloudflare’s “sorry you have been blocked” screen. The post is divided in two sections: Analysis of the malware and malicious code … Read full article →
In this post, I will be using 3 free tools to scan WordPress websites for vulnerabilities. NAME PLATFORM HOW TO USE LIMITS WPScan Windows & Linux terminal free plan: 25 reports daily WPSEC website online free plan: 20 scans daily Burp Suite Windows & Linux application ∞ 1. From the terminal: WPScan If you have … Read full article →
I’ve been a WordPress user for over a decade and back at the beginning of my first WP blog (around 2010), I did a comparison between at the time most popular WordPress Caching plugins, and various caching methods: APC, XCache, and eAccelerator. Most of those plugins are long dead but some of their functions still … Read full article →
Like many other scripts, WordPress also uses PHPmailer to send transactional emails. If no email is set for sending emails, WordPress will use the default cPanel email account ([email protected]) which isn’t pretty. SMTP (Simple Mail Transfer Protocol) is an industry-standard for sending emails. Proper SMTP configuration helps increase email deliverability by using authentication. To specify … Read full article →
In short: WP_MEMORY_LIMIT is the default limit set for the front end, but it can be raised up to WP_MAX_MEMORY_LIMIT in wp-admin pages. WP_MEMORY_LIMIT WP_MEMORY_LIMIT allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as “Allowed memory size of X … Read full article →