WP_CLI::addCommand
back-compat.
Method of the class: WP_CLI{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WP_CLI::addCommand( $name, $class );
- $name(required)
- .
- $class(required)
- .
WP_CLI::addCommand() WP CLI::addCommand code WP-CLI 2.13.0-alpha
public static function addCommand( $name, $class ) {
trigger_error(
sprintf(
'wp %s: %s is deprecated. use WP_CLI::add_command() instead.',
$name,
__FUNCTION__
),
E_USER_WARNING
);
self::add_command( $name, $class );
}