WC_Tracks_Event::record()publicWC 1.0

Record Tracks event

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();

WC_Tracks_Event::record() code WC 8.9.0

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

	return WC_Tracks_Footer_Pixel::record_event( $this );
}