Don’t Repeat Yourself: Automating Repetitive Tasks with WP-CLI

, Software Pundits
This post was originally published on this site

Toptal

In a recent project, there were several programmatic tasks I needed to repeat periodically. One task in particular involved updating user-level permissions based on evidence of membership level purchase or subscription. Instead of going into the admin panel and manually deleting hundreds (maybe thousands) of subscriptions, I opted to reach for one of my favorite WordPress tools: WP-CLI, which fixed the problem in a few keystrokes.

To read the full article click on the 'post' link at the top.