Skip to content

Tag: WordPress

More on WP-CLI (updated)

Two examples of PHP scripts that use WP-CLI. I like to do it this way rather than as a shell script because a) shell scripts are unreadable; and b) I don’t know how to write shell scripts. The first updates an option based on plugin activation and the current option value; the second selectively activates or de-activates a plugin based on the current theme.

1 Comment