WP_CLI::remove_deferred_addition()
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() 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 ] ); }