WC_Tracks_Client::record_pixel
Synchronously request the pixel.
Метод класса: WC_Tracks_Client{}
Хуков нет.
Возвращает
true|false
. Always returns true.
Использование
$result = WC_Tracks_Client::record_pixel( $pixel );
- $pixel(строка) (обязательный)
- pixel url and query string.
Код WC_Tracks_Client::record_pixel() WC Tracks Client::record pixel WC 9.9.4
public static function record_pixel( $pixel ) { // Add the Request Timestamp and no cache parameter just before the HTTP request. $pixel = self::add_request_timestamp_and_nocache( $pixel ); wp_safe_remote_get( $pixel, array( 'blocking' => false, 'redirection' => 2, 'httpversion' => '1.1', 'timeout' => 1, ) ); return true; }