WC_Tracks_Event::record()publicWC 1.0

Record Tracks event

Метод класса: WC_Tracks_Event{}

Хуков нет.

Возвращает

true|false. Always returns true.

Использование

$WC_Tracks_Event = new WC_Tracks_Event();
$WC_Tracks_Event->record();

Код WC_Tracks_Event::record() WC 7.1.0

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

	return WC_Tracks_Footer_Pixel::record_event( $this );
}