WC_Tracks_Footer_Pixel::send_tracks_requests()
Fire off API calls for events that weren't converted to pixels.
This handles wp_redirect().
Method of the class: WC_Tracks_Footer_Pixel{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Tracks_Footer_Pixel = new WC_Tracks_Footer_Pixel(); $WC_Tracks_Footer_Pixel->send_tracks_requests();
WC_Tracks_Footer_Pixel::send_tracks_requests() WC Tracks Footer Pixel::send tracks requests code WC 9.3.1
public function send_tracks_requests() { if ( empty( $this->events ) ) { return; } foreach ( $this->events as $event ) { WC_Tracks_Client::record_event( $event ); } }