Automattic\WooCommerce\Internal\CLI\Migrator\Lib

ImportSession::get_human_readable_file_referencepublicWC 1.0

Method of the class: ImportSession{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

ImportSession::get_human_readable_file_reference() code WC 10.7.0

public function get_human_readable_file_reference() {
	switch ( $this->get_data_source() ) {
		case 'wxr_file':
		case 'markdown_zip':
			return get_post_meta( $this->post_id, 'file_name', true );
		case 'wxr_url':
			return get_post_meta( $this->post_id, 'source_url', true );
	}

	return '';
}