Using WP_CLI::confirm() with an associate argument in WP CLI

In this article we are going to learn about WP_CLI::confirm() with associate argument. Note: If you read some recent articles then you can skip some below steps that are related to plugin creation. Register WP CLI Command #Register WP CLI Command Register PHP class WordPress_Examples_WP_CLI e.g. if ( ! class_exists( ‘WordPress_Examples_WP_CLI’ ) && class_exists( ‘WP_CLI_Command’