* : The current URL of the blog. * * * : The new URL of the blog. * * ## EXAMPLES * * # Move blog from old URL to new URL * $ wp activitypub move https://example.com/ https://newsite.com/ * * @param array $args The positional arguments. * @param array $assoc_args The associative arguments (unused). */ public function __invoke( $args, $assoc_args ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable $from = $args[0]; $to = $args[1]; $outbox_item_id = Move::account( $from, $to ); if ( \is_wp_error( $outbox_item_id ) ) { \WP_CLI::error( $outbox_item_id->get_error_message() ); } else { \WP_CLI::success( 'Move Scheduled.' ); } } }