Automattic\WooCommerce\Internal\CLI\Migrator\Lib

ImportSession::get_metadatapublicWC 1.0

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

Хуков нет.

Возвращает

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

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

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

Код ImportSession::get_metadata() WC 10.8.1

public function get_metadata() {
	$cursor = $this->get_reentrancy_cursor();

	return array(
		'post_id'       => $this->post_id,
		'cursor'        => $cursor ? $cursor : null,
		'data_source'   => get_post_meta( $this->post_id, 'data_source', true ),
		'source_url'    => get_post_meta( $this->post_id, 'source_url', true ),
		'attachment_id' => get_post_meta( $this->post_id, 'attachment_id', true ),
	);
}