Automattic\WooCommerce\Internal\CLI\Migrator\Lib
ImportSession::get_metadata
Method of the class: ImportSession{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ImportSession = new ImportSession(); $ImportSession->get_metadata();
ImportSession::get_metadata() ImportSession::get metadata code 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 ),
);
}