Adjusting a plugin, to user’s needs is one of the main agendas every plugin owner has to follow. For a front-page slider that means more color-pickers, fonts and similar visual options. However, if you’re catering to developers, admins, and other power-users sooner or later, they’ll want CLI support. They’ll want to ditch the mouse and work only with the keyboard. Thanks to the WP-CLI project adding CLI support to your plugin is a piece of cake. The eternal GUI vs CLI battle
Let’s get something out of the way: GUI (Graphical User Interface) is not better than CLI (Command Line Interface) and vice-versa: CLI is not better than GUI. People prefer one over the other. It’s a matter of personal preference or habit. “Are they the same, are they interchangeable?” With some compromises, yes they can be but, nobody likes to pick colors in a black&white command line interface. That’s simply counterproductive. They each serve a specialized purpose.
“So why do we need both? Isn’t WP more GUI oriented?” It is, WP is more GUI oriented. But not for all users. Some people use WP in a way that’s more suited for CLI, and
Source: https://managewp.org/articles/17753/how-to-add-wp-cli-support-to-any-wordpress-plugin
source https://williechiu40.wordpress.com/2018/08/16/how-to-add-wp-cli-support-to-any-wordpress-plugin/
No comments:
Post a Comment