Action_Scheduler\Migration

Config::get_source_storepublicWC 1.0

Get the configured source store.

Method of the class: Config{}

No Hooks.

Returns

ActionScheduler_Store.

Usage

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

Config::get_source_store() code WC 10.4.3

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