Automattic\WooCommerce\Internal\CLI\Migrator\Lib
ImportSession::get_stage
Gets the current import stage.
Method of the class: ImportSession{}
No Hooks.
Returns
String. The current stage
Usage
$ImportSession = new ImportSession(); $ImportSession->get_stage();
ImportSession::get_stage() ImportSession::get stage code WC 10.7.0
public function get_stage() {
if ( ! isset( $this->cached_stage ) ) {
$meta = get_post_meta( $this->post_id, 'current_stage', true );
$this->cached_stage = $meta ? $meta : self::STAGE_INITIAL;
}
return $this->cached_stage;
}