Skip to main content
bj {bjørn:johansen}
  • About me
  • Privacy Policy
  • About me
  • Privacy Policy

Tag

wp-cli

3 posts Feed
  1. 23 Jan 2017

    Move your WordPress site from non-www to www domain

    So, you’ve launched your WordPress site on a non-www domain, like example.com, but since then found out that running it on on www, like www.example.com, is better and want to move? You’re in luck, because it is really easy.

    Read
  2. 16 Oct 2016

    Moderate WordPress comments with WP-CLI

    I very much appreciate comments that bring new insights, corrects my errors, or leaves a thank you note. But even so, it is a bit tedious to moderate comments. Though logging into WordPress – even with [two-factor authentication](https://www.bjornjohansen.com/two-factor-authentication-for-wordpress) enabled – isn’t much of a hassle, it is still a nuisance when you just want to approve or trash a couple of comments.

    Read
  3. 9 Dec 2015

    Run all due cron events for WordPress with WP-CLI

    Running a real cronjob is much more reliable than WordPress’ built-in “maybe-will-trigger” solution. But if you’re running a multisite network, you have to add a crontab entry for every site you set up – which is tedious. Thanks to WP-CLI, we can use a small bash script instead, which will run all due events for all sites for us. Oh, and it works for single sites as well.

    Read

© 2026 Bjørn Johansen.

Feed Built with Hugo