Automattic\WooCommerce\Internal\CLI\Migrator\Lib
ImportSession::is_stage_completed
Method of the class: ImportSession{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ImportSession = new ImportSession(); $ImportSession->is_stage_completed( $stage );
- $stage(required)
- .
ImportSession::is_stage_completed() ImportSession::is stage completed code WC 10.8.1
public function is_stage_completed( $stage ) {
$current_stage = $this->get_stage();
$stage_index = array_search( $stage, self::STAGES_IN_ORDER, true );
$current_stage_index = array_search( $current_stage, self::STAGES_IN_ORDER, true );
return $current_stage_index > $stage_index;
}