WP_CLI::remove_deferred_addition()public staticWP-CLI 1.0

Remove a command addition from the list of outstanding deferred additions.

Method of the class: WP_CLI{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WP_CLI::remove_deferred_addition( $name );
$name (required)
-

WP_CLI::remove_deferred_addition() code WP-CLI 2.8.0-alpha

public static function remove_deferred_addition( $name ) {
	if ( ! array_key_exists( $name, self::$deferred_additions ) ) {
		self::warning( "Trying to remove a non-existent command addition '{$name}'." );
	}

	unset( self::$deferred_additions[ $name ] );
}