Action_Scheduler\Migration

Config::get_source_store()publicWC 1.0

Get the configured source store.

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

Хуков нет.

Возвращает

ActionScheduler_Store.

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

$Config = new Config();
$Config->get_source_store();

Код Config::get_source_store() WC 8.7.0

public function get_source_store() {
	if ( empty( $this->source_store ) ) {
		throw new \RuntimeException( __( 'Source store must be configured before running a migration', 'woocommerce' ) );
	}

	return $this->source_store;
}