devcollaborative / plugin-hunter

Command line tool to easily search through all your Pantheon-hosted WordPress sites and identify active instances of a particular plugin.
0 stars 0 forks source link

Don't remove column headers from plugin list #4

Open cparkinson opened 2 weeks ago

cparkinson commented 2 weeks ago

WP-CLI used to output column headers when you got the plugin list, so the script deletes the first item from the list, but it looks like they changed that in a recent update: https://make.wordpress.org/cli/2024/08/08/wp-cli-v2-11-0-release-notes/

We just need to remove these lines from the script: // Remove the column headers from the array. array_shift($active_plugins);