WC_Product_CSV_Importer_Controller::done()
Done step.
Метод класса: WC_Product_CSV_Importer_Controller{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->done();
Код WC_Product_CSV_Importer_Controller::done() WC Product CSV Importer Controller::done WC 8.1.1
protected function done() { check_admin_referer( 'woocommerce-csv-importer' ); $imported = isset( $_GET['products-imported'] ) ? absint( $_GET['products-imported'] ) : 0; $imported_variations = isset( $_GET['products-imported-variations'] ) ? absint( $_GET['products-imported-variations'] ) : 0; $updated = isset( $_GET['products-updated'] ) ? absint( $_GET['products-updated'] ) : 0; $failed = isset( $_GET['products-failed'] ) ? absint( $_GET['products-failed'] ) : 0; $skipped = isset( $_GET['products-skipped'] ) ? absint( $_GET['products-skipped'] ) : 0; $file_name = isset( $_GET['file-name'] ) ? sanitize_text_field( wp_unslash( $_GET['file-name'] ) ) : ''; $errors = array_filter( (array) get_user_option( 'product_import_error_log' ) ); include_once dirname( __FILE__ ) . '/views/html-csv-import-done.php'; }