WC_Tracks_Client::add_request_timestamp_and_nocache
Add request timestamp and no cache parameter to pixel. Use this the latest possible before the HTTP request.
Method of the class: WC_Tracks_Client{}
No Hooks.
Returns
String. Pixel URL with request timestamp and URL terminator.
Usage
$result = WC_Tracks_Client::add_request_timestamp_and_nocache( $pixel );
- $pixel(string) (required)
- Pixel URL.
WC_Tracks_Client::add_request_timestamp_and_nocache() WC Tracks Client::add request timestamp and nocache code WC 10.6.2
public static function add_request_timestamp_and_nocache( $pixel ) {
$pixel .= '&_rt=' . self::build_timestamp() . '&_=_';
return $pixel;
}