* : User ID to disconnect. * * ## EXAMPLES * * wp google-site-kit auth disconnect --id=11 * * @alias revoke * * @since 1.11.0 * * @param array $args Array of arguments. * @param array $assoc_args Array of associated arguments. */ public function disconnect( $args, $assoc_args ) { $user_id = absint( $assoc_args['id'] ); $authentication = new Authentication( $this->context, new Options( $this->context ), new User_Options( $this->context, $user_id ), new Transients( $this->context ) ); $authentication->disconnect(); WP_CLI::success( sprintf( 'User with ID %d successfully disconnected.', $user_id ) ); } }