WordPress at Your Fingertips
function is not described

WC_Tracks_Event::record() public WC 1.0

Record Tracks event

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

No Hooks.

Return

true|false. Always returns true.

Usage

$WC_Tracks_Event = new WC_Tracks_Event();
$WC_Tracks_Event->record();

Code of WC_Tracks_Event::record() WC 5.8.0

public function record() {
	if ( wp_doing_ajax() || Constants::is_true( 'REST_REQUEST' ) ) {
		return WC_Tracks_Client::record_event( $this );
	}

	return WC_Tracks_Footer_Pixel::record_event( $this );
}