WordPress at Your Fingertips
function is not described

WC_Tracks_Footer_Pixel::send_tracks_requests() public WC 1.0

Fire off API calls for events that weren't converted to pixels.

This handles wp_redirect().

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Tracks_Footer_Pixel = new WC_Tracks_Footer_Pixel();
$WC_Tracks_Footer_Pixel->send_tracks_requests();

Code of WC_Tracks_Footer_Pixel::send_tracks_requests() WC 5.8.0

public function send_tracks_requests() {
	if ( empty( $this->events ) ) {
		return;
	}

	foreach ( $this->events as $event ) {
		WC_Tracks_Client::record_event( $event );
	}
}