public function move_site( $args, $assoc_args ) {
		list( $site_id, $new_network_id ) = $args;

		$network_id = move_site( $site_id, $new_network_id );

		if ( is_wp_error( $network_id ) ) {
			WP_CLI::error( $network_id );
		}

		WP_CLI::success( sprintf( 'Site %1$d has moved to network %2$d.', $site_id, $new_network_id ) );
	}
public function move_site( $args, $assoc_args ) {
		list( $site_id, $new_network_id ) = $args;

		$network_id = move_site( $site_id, $new_network_id );

		if ( is_wp_error( $network_id ) ) {
			WP_CLI::error( $network_id );
		}

		WP_CLI::success( sprintf( 'Site %1$d has moved to network %2$d.', $site_id, $new_network_id ) );
	}
public function move_site ( $ args , $ assoc_args ) { list ( $ site_id , $ new_network_id ) = $ args ; $ network_id = move_site ( $ site_id , $ new_network_id ) ; if ( is_wp_error ( $ network_id ) ) { WP_CLI :: error ( $ network_id ) ; } WP_CLI :: success ( sprintf ( 'Site %1$d has moved to network %2$d.' , $ site_id , $ new_network_id ) ) ; }
Move a site to another network.

<site_id>
: Site id to move

<new_network_id>
: New network id

@subcommand move-site

@since 1.3.0

@param array $args       Positional CLI arguments.
@param array $assoc_args Associative CLI arguments.
Move a site to another network .