WordPress at Your Fingertips
function is not described

WC_Settings_Tracking::track_settings_page_view() public WC 1.0

Send a Tracks event for WooCommerce settings page views.

{} It's a method of the class: WC_Settings_Tracking{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Settings_Tracking = new WC_Settings_Tracking();
$WC_Settings_Tracking->track_settings_page_view();

Code of WC_Settings_Tracking::track_settings_page_view() WC 5.8.0

public function track_settings_page_view() {
	global $current_tab, $current_section;

	$properties = array(
		'tab'     => $current_tab,
		'section' => empty( $current_section ) ? null : $current_section,
	);

	WC_Tracks::record_event( 'settings_view', $properties );
}