Automattic\WooCommerce\Internal\CLI\Migrator\Lib

ImportSession::get_original_argumentspublicWC 1.0

Get the original command arguments for session resumption.

Method of the class: ImportSession{}

No Hooks.

Returns

Array|null. The original arguments or null if not found

Usage

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

ImportSession::get_original_arguments() code WC 10.7.0

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