WC_Importer_Tracking::track_product_importer_start
Send a Tracks event when the product importer is started.
Метод класса: WC_Importer_Tracking{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Importer_Tracking = new WC_Importer_Tracking(); $WC_Importer_Tracking->track_product_importer_start();
Код WC_Importer_Tracking::track_product_importer_start() WC Importer Tracking::track product importer start WC 10.7.0
public function track_product_importer_start() {
// phpcs:disable WordPress.Security.NonceVerification.Recommended
if ( ! isset( $_REQUEST['file'] ) || ! isset( $_REQUEST['_wpnonce'] ) ) {
return;
}
$properties = array(
'update_existing' => isset( $_REQUEST['update_existing'] ) ? (bool) $_REQUEST['update_existing'] : false,
'delimiter' => empty( $_REQUEST['delimiter'] ) ? ',' : wc_clean( wp_unslash( $_REQUEST['delimiter'] ) ),
);
// phpcs:enable
WC_Tracks::record_event( 'product_import_start', $properties );
}