Automattic\WooCommerce\Internal\CLI\Migrator\Lib

ImportSession::get_original_argumentspublicWC 1.0

Get the original command arguments for session resumption.

Метод класса: ImportSession{}

Хуков нет.

Возвращает

Массив|null. The original arguments or null if not found

Использование

$ImportSession = new ImportSession();
$ImportSession->get_original_arguments();

Код ImportSession::get_original_arguments() WC 10.5.2

public function get_original_arguments() {
	$args = get_post_meta( $this->post_id, 'original_arguments', true );
	return ( is_array( $args ) && ! empty( $args ) ) ? $args : null;
}