Advertisement

How to use WP_CLI::confirm() in WP CLI

In this article let’s learn about WP_CLI::confirm() function. Note: If you read some recent articles then you can skip some below steps that are related to plugin creation. Create Empty Plugin #Create Empty Plugin Create a new folder wordpress-examples into plugins directory /wp-content/plugins/ Create a file wordpress-examples.php and add the below code into it. <?php