We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 367b68f commit 6ff3bf6Copy full SHA for 6ff3bf6
features/command.feature
@@ -1675,12 +1675,8 @@ Feature: WP-CLI Commands
1675
// Plugin Name: Custom Command
1676
1677
add_action( 'cli_init', function() {
1678
- WP_CLI::add_command( 'custom', 'do_custom_command' );
+ WP_CLI::add_command( 'custom', function () {} );
1679
} );
1680
-
1681
- function do_custom_command() {
1682
- WP_CLI::success( 'Triggered the callback for the custom command.' );
1683
- }
1684
"""
1685
And I run `wp plugin activate custom-command`
1686
When I run `wp custom --help`
0 commit comments