Automattic\WooCommerce\Internal\CLI\Migrator\Lib
ImportSession::get_stage
Gets the current import stage.
Метод класса: ImportSession{}
Хуков нет.
Возвращает
Строку. The current stage
Использование
$ImportSession = new ImportSession(); $ImportSession->get_stage();
Код ImportSession::get_stage() ImportSession::get stage WC 10.9.4
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;
}