#wpcli

Rad Web Hostingradwebhosting
2026-01-24

⚙️ SSD-Powered Web – Up to 25x Faster
⚙️ SSD-Powered cPanel Web Hosting by Rad Web Hosting
Built for Performance. Backed by Reliability. Ready to Scale.
Developers, sysadmins, and power users—we built this for you. Our SSD-powered ...
Continued 👉 blog.radwebhosting.com/ssd-pow

Alister Bulmanalister@hachyderm.io
2026-01-20

If you want a /slightly/ extended version of this - I've also blogged it at phpscaling.com/post/2026-01-20 #wordpress #wpcli

Alister Bulmanalister@hachyderm.io
2026-01-20

That's one (slightly annoying) problem solved so far today - I've managed to upgrade the #WordPress version and plugins on abulman.co.uk/ after a couple of attempts.
I use WP-CLI to do it all from the command line, but it had been reporting that everything was already up to date - even though the dashboard was lit up like an Xmas tree with new version notifications.

Initially, I forced a version update with `wp core update --version=6.9 --force`, but wanted to find the general solution. Searching found a couple of posts saying that security or caching plugins could be the issue, so I ended up making a quick edit in the W3TC drop-in plugin file at `wp-content/object-cache.php`, just adding a `return;` at the top so it wasn't used. That solved it, and I could upgrade all the themes and plugins, before removing the line again.

As that WordPress site is the only thing I've got on the server, I'll take another look around for a good looking theme for Hugo to replace it with a Github pages version and setup all the redirects in LuaDNS to send them there. Or maybe I can just add some things to my Github front-page at github.com/alister instead?

#wordpress #wpcli

mastodon.raddemo.hostadmin@mastodon.raddemo.host
2026-01-19

⚙️ SSD-Powered #cPanel Web #Hosting – Up to 25x Faster
⚙️ SSD-Powered cPanel Web Hosting by Rad Web Hosting
Built for Performance. Backed by Reliability. Ready to Scale.
Developers, sysadmins, and power users—we built this for you. Our SSD-powered ...
Continued 👉 blog.radwebhosting.com/ssd-pow #sshaccess #csf #laravel #litespeed #webhosting #gitversioncontrol #mariadb #wpcli #postgresql #joomla #modsecurity #softaculous #phpmyadmin #webdisk #cloudlinux #phppgadmin #letsencrypt #ftp

2026-01-17

Using WP-CLI to Delete Posts Containing a Specific Metadata Value

I was doing some maintenance on a WordPress site for a client, and for very specific reasons, I had to use non-interactive WP-CLI commands to do anything on this site.

What I wanted to do

Delete all pages that contained a custom postmeta key and value.

For the sake of this example, I wanted to delete:

  • Post Type: Only “page” types
  • Containing the “_mykey” custom meta key with the value “value1”

Solution

Verify the posts that are going to be deleted first

It’s always advisable to double check what you’re going to delete first. The “measure twice, cut once” one database management.

wp post list --meta_key="_mykey" --fields="ID" --format=ids --post_type=page --meta_value="value1"


Delete the Data

Now that you’ve confirmed what you’re going to delete is correct, you can proceed.

wp post delete $(wp post list --meta_key="_mykey" --fields="ID" --format=ids --post_type=page --meta_value="value1")

For an added measure of safety, this only moves the posts into the trash. If you wanted to permanently delete them, add the --force flag to the delete command,

wp post delete $(wp post list --meta_key="_mykey" --fields="ID" --format=ids --post_type=page --meta_value="value1") --force

Bonus

If you want to delete the posts that contain the “_mykey” meta_key, regardless of what the value is in meta_value,

wp post delete $(wp post list --meta_key="_mykey" --fields="ID" --format=ids --post_type=page) --force

#WPCLI
bash, terminal, linux, unix, computer, prompt, ubuntu, greater than, gray computer, gray laptop, terminal, terminal, linux, linux, linux, linux, linux
Negative PID Inc.negativepid
2026-01-07

As a WordPress website administrator, having a WAF is due diligence. However, as an admin, it's more common to perform actions that trigger a firewall block. When that happens, the last thing you want is to call your web host and spend the next hour escalating your case to regain access. Here's a quick way to bypass your firewall through the WP-CLI.

negativepid.blog/how-to-regain
negativepid.blog/how-to-regain

Florian Zieglerflorianziegler
2026-01-05
Rad Web Hostingradwebhosting
2026-01-04

⚙️ SSD-Powered Web – Up to 25x Faster
⚙️ SSD-Powered cPanel Web Hosting by Rad Web Hosting
Built for Performance. Backed by Reliability. Ready to Scale.
Developers, sysadmins, and power users—we built this for you. Our SSD-powered ...
Continued 👉 blog.radwebhosting.com/ssd-pow

2026-01-02

Script to install #WordPress using #WPCLI: This tool helps you generate the commands to install WordPress with a specific theme and plugins. To use, build your config, then just paste into the terminal of your web hosting account. Securely just within your web browser 👍

encode.host/knowledgebase/4716/

Negative PID Inc.negativepid
2025-12-22

As a WordPress website administrator, having a WAF is due diligence. However, as an admin, it's more common to perform actions that trigger a firewall block. When that happens, the last thing you want is to call your web host and spend the next hour escalating your case to regain access. Here's a quick way to bypass your firewall through the WP-CLI.

negativepid.blog/how-to-regain
negativepid.blog/how-to-regain

mastodon.raddemo.hostadmin@mastodon.raddemo.host
2025-12-21

⚙️ SSD-Powered #cPanel Web #Hosting – Up to 25x Faster
⚙️ SSD-Powered cPanel Web Hosting by Rad Web Hosting
Built for Performance. Backed by Reliability. Ready to Scale.
Developers, sysadmins, and power users—we built this for you. Our SSD-powered ...
Continued 👉 blog.radwebhosting.com/ssd-pow #postgresql #litespeed #softaculous #sshaccess #letsencrypt #gitversioncontrol #mariadb #joomla #modsecurity #phpmyadmin #csf #phppgadmin #webhosting #wpcli #laravel #ftp #webdisk #cloudlinux

4 Ways To Generate Test Data in WordPress

Manually adding this data to the database takes a lot of time. Learn how to generate WordPress data automatically.

alexstandiford.com/articles/es

Rad Web Hostingradwebhosting
2025-12-08

⚙️ SSD-Powered Web – Up to 25x Faster
⚙️ SSD-Powered cPanel Web Hosting by Rad Web Hosting
Built for Performance. Backed by Reliability. Ready to Scale.
Developers, sysadmins, and power users—we built this for you. Our SSD-powered ...
Continued 👉 blog.radwebhosting.com/ssd-pow

Negative PID Inc.negativepid
2025-12-06

As a WordPress website administrator, having a WAF is due diligence. However, as an admin, it's more common to perform actions that trigger a firewall block. When that happens, the last thing you want is to call your web host and spend the next hour escalating your case to regain access. Here's a quick way to bypass your firewall through the WP-CLI.

negativepid.blog/how-to-regain
negativepid.blog/how-to-regain

mastodon.raddemo.hostadmin@mastodon.raddemo.host
2025-12-04

⚙️ SSD-Powered #cPanel Web #Hosting – Up to 25x Faster
⚙️ SSD-Powered cPanel Web Hosting by Rad Web Hosting
Built for Performance. Backed by Reliability. Ready to Scale.
Developers, sysadmins, and power users—we built this for you. Our SSD-powered ...
Continued 👉 blog.radwebhosting.com/ssd-pow #webhosting #phppgadmin #laravel #csf #letsencrypt #modsecurity #wpcli #postgresql #joomla #sshaccess #litespeed #gitversioncontrol #cloudlinux #ftp #mariadb #webdisk #softaculous #phpmyadmin

DefectiveWings ✈️:verified:DefectiveWings@infosec.exchange
2025-11-20

Do I know anyone here who could help me with writing A basic #PHPUnit test for a #wpcli plugin I'm writing? Everything online I'm finding is how to scaffold unit tests with wpcli for a WordPress plugin, but not how to write tests for the actual wpcli part.

#testing #PHP #WordPress

Negative PID Inc.negativepid
2025-11-18

As a WordPress website administrator, having a WAF is due diligence. However, as an admin, it's more common to perform actions that trigger a firewall block. When that happens, the last thing you want is to call your web host and spend the next hour escalating your case to regain access. Here's a quick way to bypass your firewall through the WP-CLI.

negativepid.blog/how-to-regain
negativepid.blog/how-to-regain

mastodon.raddemo.hostadmin@mastodon.raddemo.host
2025-11-18

⚙️ SSD-Powered #cPanel Web #Hosting – Up to 25x Faster
⚙️ SSD-Powered cPanel Web Hosting by Rad Web Hosting
Built for Performance. Backed by Reliability. Ready to Scale.
Developers, sysadmins, and power users—we built this for you. Our SSD-powered ...
Continued 👉 blog.radwebhosting.com/ssd-pow #litespeed #softaculous #ftp #phpmyadmin #cloudlinux #gitversioncontrol #mariadb #phppgadmin #laravel #wpcli #postgresql #joomla #csf #webdisk #webhosting #modsecurity #sshaccess #letsencrypt

Negative PID Inc.negativepid
2025-11-07

As a WordPress website administrator, having a WAF is due diligence. However, as an admin, it's more common to perform actions that trigger a firewall block. When that happens, the last thing you want is to call your web host and spend the next hour escalating your case to regain access. Here's a quick way to bypass your firewall through the WP-CLI.

negativepid.blog/how-to-regain
negativepid.blog/how-to-regain

Negative PID Inc.negativepid
2025-11-03

As a WordPress website administrator, having a WAF is due diligence. However, as an admin, it's more common to perform actions that trigger a firewall block. When that happens, the last thing you want is to call your web host and spend the next hour escalating your case to regain access. Here's a quick way to bypass your firewall through the WP-CLI.

negativepid.blog/how-to-regain
negativepid.blog/how-to-regain

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst