PHP 8.6 Is Out: Is WordPress Compatible? Check Your Plugins
PHP 8.6 is due November 19. Find deprecated functions in your plugins with grep and WP-CLI, test on staging and switch PHP without breaking WordPress.
š” WP-CLI is the command-line interface for WordPress that lets you manage your WordPress site, themes, and plugins from the terminal.
Here you can find most useful WP-CLI commands and tutorials.
PHP 8.6 is due November 19. Find deprecated functions in your plugins with grep and WP-CLI, test on staging and switch PHP without breaking WordPress.
Site Health says the loopback request failed and cron returns status code 0? Find the DNS or firewall cause and run WP-Cron from a real server cron.
Fix the “Action Scheduler: past-due actions found” notice: update the bundled library, clear the queue with WP-CLI and move it to a real server cron.
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 ā
Here are some useful commands to clear cache from the terminal with wpcli: cdn_purge purge URLs from CDN and Varnish flush all flushes all cache related to W3TC (Page Cache, OC, DB Cache, Minify, etc.) flush page flushes pages cache only flush posts flushes both pages & posts cache flush database flushes DB cache flush … Read full article ā
Recently I was migrating a website from GoDaddy shared hosting using WP-CLI and noticed the PHP version in cli was outdated. Here is how to install WP-CLI and set custom PHP version for the cli. Setup WP-CLI To download WP cli: To run it use php wp-cli.phar To make it easier to call We’ll rename … Read full article ā
In this guide We’ll cover how to reset a WordPress user password using WP-CLI. Step 1. Ensure WP-CLI is installed and you are in the website directory run the following command to check if you are in the right folder: Step 2. List all users and note user_login for the user Step 3. Replace the … Read full article ā
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
Deleting all inactive WordPress themes and plugins from your website is a recommended security practice. Even when deactivated, old, insecure plugins and themes might still pose a threat to the security of your WordPress website. Here are oneliners to remove inactive themes and plugins from your WordPress website using WP-CLI. List all inactive WordPress themes: Delete … Read full article ā
You can download older versions of any plugin hosted on WordPress.org directly from the website or from WP-CLI. To download older plugin versions from WordPress.org click on the Advanced view link scroll down to the end of the page and under Previous Versions select the version that you would like to download. that’s it! Another … Read full article ā