Automattic\WooCommerce\Internal\CLI\Migrator\Lib

ImportSession::get_human_readable_file_reference │ public │ WC 1.0

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код ImportSession::get_human_readable_file_reference() WC 11.3.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 '';
}