WordPress at Your Fingertips
function is not described

WC_Tracks_Footer_Pixel::add_event() public WC 1.0

Add a Tracks event to the queue.

{} 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->add_event( $event );
$event(WC_Tracks_Event) (required)
Event to track.

Code of WC_Tracks_Footer_Pixel::add_event() WC 5.8.0

public function add_event( $event ) {
	$this->events[] = $event;
}