Automattic\WooCommerce\Internal\CLI\Migrator\Lib

ImportSession::set_reentrancy_cursorpublicWC 1.0

Updates the importer cursor.

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

Хуков нет.

Возвращает

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

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

$ImportSession = new ImportSession();
$ImportSession->set_reentrancy_cursor( $cursor );
$cursor(строка) (обязательный)
The new cursor data.

Код ImportSession::set_reentrancy_cursor() WC 10.9.4

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 ) );
}