WC_Admin_Importers::track_importer_exporter_view()publicWC 1.0

Track importer/exporter view.

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

Хуков нет.

Возвращает

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

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

$WC_Admin_Importers = new WC_Admin_Importers();
$WC_Admin_Importers->track_importer_exporter_view();

Код WC_Admin_Importers::track_importer_exporter_view() WC 9.4.2

public function track_importer_exporter_view() {
	$screen = get_current_screen();

	if ( ! isset( $screen->id ) ) {
		return;
	}

	// Don't track if we're in a specific import screen.
	// phpcs:ignore
	if ( isset( $_GET['import'] ) ) {
		return;
	}

	if ( 'import' === $screen->id || 'export' === $screen->id ) {
		wc_admin_record_tracks_event( 'wordpress_' . $screen->id . '_view' );
	}
}