WC_Tracks_Event::record
Record Tracks event
Method of the class: WC_Tracks_Event{}
No Hooks.
Returns
true|false. Always returns true.
Usage
$WC_Tracks_Event = new WC_Tracks_Event(); $WC_Tracks_Event->record();
WC_Tracks_Event::record() WC Tracks Event::record code WC 10.5.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 );
}