WC_Product_CSV_Importer_Controller::dispatch()publicWC 1.0

Dispatch current step and show correct view.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WC_Product_CSV_Importer_Controller = new WC_Product_CSV_Importer_Controller();
$WC_Product_CSV_Importer_Controller->dispatch();

Код WC_Product_CSV_Importer_Controller::dispatch() WC 8.7.0

public function dispatch() {
	// phpcs:ignore WordPress.Security.NonceVerification.Missing
	if ( ! empty( $_POST['save_step'] ) && ! empty( $this->steps[ $this->step ]['handler'] ) ) {
		call_user_func( $this->steps[ $this->step ]['handler'], $this );
	}
	$this->output_header();
	$this->output_steps();
	$this->output_errors();
	call_user_func( $this->steps[ $this->step ]['view'], $this );
	$this->output_footer();
}