Automattic\WooCommerce\Internal\CLI\Migrator\Lib

ImportSession::set_reentrancy_cursorpublicWC 1.0

Updates the importer cursor.

Method of the class: ImportSession{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ImportSession = new ImportSession();
$ImportSession->set_reentrancy_cursor( $cursor );
$cursor(string) (required)
The new cursor data.

ImportSession::set_reentrancy_cursor() code WC 10.8.1

public function set_reentrancy_cursor( $cursor ) {
	// WordPress, sadly, removes single slashes from the meta value and
	// requires an addslashes() call to preserve them.
	update_post_meta( $this->post_id, 'importer_cursor', addslashes( $cursor ) );
}